Delete a cookie when page closes - how?
Posted 31 August 2006 - 06:28 PM
example I got page named X, when I close that page or change address to anyother I want to delete cookie name Y, how?
Posted 31 August 2006 - 06:34 PM
setcookie ( string name [, string value [, int expire [, string path [, string domain [, bool secure [, bool httponly]]]]]] )
expire- If not set, the cookie will expire at the end of the session (when the browser closes).
See more at setcookie()
(Gone until 20 to November)
Posted 31 August 2006 - 06:51 PM
I got page name X and it creates a cookie and opens page named Y
in page Y I check it cookie exists.
now if I dont put expire it deletes the cookie when I close page X and open page Y.
I want to create a cookie in page X(I know how)
I want to delete a cookie when I close page Y(how?)
Posted 31 August 2006 - 07:05 PM
Posted 31 August 2006 - 07:10 PM
listen I got 2 pages, with page 1 I create a cookie\session.
With page 2 I will check if the cookie\session exists.
I want to create a cookie\session with page1 and close page1 and open page2, with page2 to check if cookie\session exists then show example.."blabla" and when I will close page2 the cookie\session will be deleted...is it possible?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users