Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi All,

 

I have written a little web site that has a log in page. Once the user logs in I set a session variable to flag this event. When the user logs into the admin section there is a check on this variable to see if they logged in correctly and didn't just put the address in the address bar instead. On my local machine this works great for both I.E. and Firefox. However when I publish it on my Windows Server 2003 box it works great with Firefox but with I.E. the session variable is null once the admin page loads.

 

Does anyone know why this is happening?

 

Cheers, Dave.

  • Administrators
Posted

Is the SessionID being preserved correctly between page loads? Is there any particular configuration that is different on the 2003 server compared to your development environment? If so is there anything that could be done to duplicater this configuration on the development machine?

 

Maybe a bit late now but did you consider using the built in authentication mechanisms (Forms being the most liekly given your scenario) rather than writing your own from scratch?

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted
After some investigation, it appears it only happens to my 2 machines at home, which are on the same network as the server. If I use a machine outside of the network i.e. my machine at work, the code works perfect.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...