27, May 2012

Logout doesn't work with "remember me" - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  Php User Class
Topic: Logout doesn't work with "remember me"
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Logout doesn't work with "remember me"  (Read 1401 times)
Chicken-run Manager
*
Posts: 9
70 credits
Members referred : 0


« on: Jun 10, 2010, 04:03:54 pm »

I tried example1.php
Using login without "remember me" logging out works.
When I check "remember me" logging out doesn't work.
I cannot log out until I delete my cookie ^^.

Is there a workaround?

Best regards,
dobberph
« Last Edit: Jun 10, 2010, 04:11:53 pm by dobberph »
Chicken-run Manager
*
Posts: 9
70 credits
Members referred : 0


« Reply #1 on: Jun 10, 2010, 04:11:37 pm »

Just change:
Code:
function logout($redirectTo = '')
  {
    setcookie($this->remCookieName, '', time()-3600);

To:
Code:
setcookie($this->remCookieName, '', time()-3600,'/',$this->remCookieDomain);

Sorry,

dobberph
Just another rainy day
*
Posts: 1
6 credits
Members referred : 0


« Reply #2 on: Aug 05, 2010, 03:00:57 am »

Dolph: seems to work for me in IE but not mozilla....
Where are my glasses?
*
Posts: 23
138 credits
Members referred : 0


« Reply #3 on: Jan 31, 2011, 05:13:12 pm »

Have you tried clearing cookies? Sounds dumb I know, but perhaps it's just an issue at your end?
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=10106
Tags : logout example1 Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  Php User Class
Topic: Logout doesn't work with "remember me"
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 08:48:09 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 62.814
Total Topics: 11.028
Total Members: 21.451
Tutorials : 58
Resources : 929
Designs : 395
Latest Member: sobbin

104 Guests, 2 Users online :

12 users online today:




Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.