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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookie problem with different IE version

Status
Not open for further replies.

aauxta

Programmer
Feb 9, 2001
7
US
Hi,

Just wonder if any of you run into problem writing cookies in different version of IE. I have a very simple login page setup and goes in the following order:

1) login page
2) login process page
3a) sucess: go to main page
3b) fail: back to login page

the cookie is written in the name of the session variable:

strSessionID="abc" & session.sessionID
Response.Cookies(strSessionID)(itemName)="yes"

I have no problem until hitting any page after main.asp. Each page has a header.asp contains a line to check if the cookie exist with:

if not Request.Cookies(strSessionID).haskeys then
response.redirect "login.asp"
end if

Using IE 5.5 is just fine but when I use IE 5 on a different machine it will not be able to find the cookie and return to the login.asp. What's "interesting" is that the second time login in will work just fine. I hope I have the problem here stated clearly and this has been bothering me for the whole last week. Any help/suggestion is greatly appreciated. Thanks in advance.

Gus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top