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
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