Jump to content
ckrudelux

unset COOKIE with unknown path

Recommended Posts

How would I unset a cookie with an unknown path?

 

What I'm trying to do is to automate the task of removing the session if nothing is stored in the session variable. But I'm trying to implement so that I could use different sessions in different folders which makes the path more or less unknown.

 

I know this might not be a good way of doing it but still I'm curious to know.

Share this post


Link to post
Share on other sites

If you're changing the session cookie parameters then you're using session_set_cookie_params, you can also use session_get_cookie_params to get the current ones. But your script should also be able to figure out its own path.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...