PHP Scripting Forums » PHP Classes Support Forum » Access_user Class Support forum

[AU] cookie question

(6 posts)
Please support us by buying these products:

  1. sakefox

    sakefox
    Member

    with the access user class, when you do the automatic login. is there a way to have that cookie destroyed when you click the logout option.

    currently right now it seems that if you click logout when the automatic login it doesn't do anything since you will be able to get back to the protected pages since the cookie isn't destroyed.

    Posted 7 months ago #
  2. I never use that feature, I think it should work if you give that cookie some invalid value after logout.

    Posted 7 months ago #
  3. sakefox

    sakefox
    Member

    ever just have one of them /facepalm moments, this is one for me ROFL

    just added
    setcookie($this->cookie_name, "remove cookie", time()-3600, $this->cookie_path);
    before the session_destroy() in the log_out() and works fine heh

    Posted 7 months ago #
  4. thats what I meant

    Posted 7 months ago #
  5. sakefox

    sakefox
    Member

    since this is part of you script package, i would like to suggest that should be added to the log_out() function

    Posted 7 months ago #
  6. Quote from: sakefox
    "since this is part of you script package, i would like to suggest that should be added to the log_out() function"

    yes right I will check this and will release a new version

    Posted 7 months ago #

RSS feed for this topic

Reply

You must log in to post.