Another quick cookie technicality question
Posted: Fri Dec 12, 2003 11:19 am
If the expire parameter in setcookie() is set to 0, that means that the cookie will remain around as long as the browser is open.
What I wonder is, does browser closed mean that that particular browser window is closed, or the whole browser application is closed?
I have a script that sets a cookie, and when you have that cookie, you are allowed to view secretpageA.php. secretpageA.php has code in the beginning testing whether or not you have that particular cookie. I noticed that when I had successfully authorized and gooten my cookie and gone to secretpageA.php, if I opened a new browser window (keeping originally, authenticated page open) and went also to secretpageA.php, it told me I wasn't authorized and didn't have the cookie.
Is this how it is supposed to work or not?
What I wonder is, does browser closed mean that that particular browser window is closed, or the whole browser application is closed?
I have a script that sets a cookie, and when you have that cookie, you are allowed to view secretpageA.php. secretpageA.php has code in the beginning testing whether or not you have that particular cookie. I noticed that when I had successfully authorized and gooten my cookie and gone to secretpageA.php, if I opened a new browser window (keeping originally, authenticated page open) and went also to secretpageA.php, it told me I wasn't authorized and didn't have the cookie.
Is this how it is supposed to work or not?