Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP SessionID not stable

Status
Not open for further replies.

KIllMeTenTimes

Programmer
Oct 23, 2002
1
US
Hi guys, I'm working on a project and need to use session variables. Whenever I refresh the browser, the sessionID changes. I tried some programs loaded on other machines and no such problems, which means the IIS can't work well. I'm running Windows 2000 with IIS 5.0.
 
Hi,
You might want to check that your client browser allows cookies setting because Sessions require a cookie to be set.

W2K with ISS5 works ok with sessions. Tried and Tested ...

- Joseph ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Visit --> for (Replica) Watches, Pen, Handbags, Hats, Jerseys and more ... at prices that makes your code spin ...
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
 
[tt]Correct me if I'm wrong, but I don't think Sessions create cookies at all. If so, please explain how they do because I'm missing somthing here...


KIllMeTenTimes
Can you post some if not all session code to see if there's a problem.

<%=Tony%>
 
Sessions do create cookies.

IIS stores your registered session variables and creates an index to that collection. It stores the collection index in a cookie. ______________________________________________________________________
TANSTAAFL!
 
Hi TonyU,
They do. Cookie is the fundamental of Session. Without it, your SessionID will be different everytime you access a page (during the same session).

You can look it up your MSDN reference or try this:

regards,
- Joseph ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Visit --> for (Replica) Watches, Pen, Handbags, Hats, Jerseys and more ... at prices that makes your code spin ...
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top