saseow
Posts: 744
|
| Posted: 02/03/2009, 10:09 AM |
|
I have a header on all pages that has a logout link made with the authentication builder. This link redirects to the login.php page. I have the Logout action on this page, also built with the authentication builder.
Once logged out, I cannot log back in again without clearing all of the browser data or shutting the browser down and restarting it upon which I do not have to login in at all. Somehow the session is kept open.
Any ideas on how to solve this or can anyone point me to a solution?
Thank you so much!
|
 |
 |
maxhugen
Posts: 272
|
| Posted: 02/03/2009, 4:00 PM |
|
Just a thought.... when you do the Login, are you setting any extra Session variables, besides the ones that CCS does automatically for you?
If so, I think you may need to clear these in the Logout script yourself.
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com |
 |
 |
saseow
Posts: 744
|
| Posted: 02/03/2009, 5:04 PM |
|
Thanks for the reply.
Nope, in this particular app. I am not setting any session variables at login beside the standard CCS automatic ones.
I have tried everything including redoing the whole login form from scratch with the same result. What bothers me is that I have done tens of apps like this and this is the very first time that this has happened.
I just don't know!
|
 |
 |
maxhugen
Posts: 272
|
| Posted: 02/03/2009, 6:03 PM |
|
When you Logout, does the URL of the login page include the parameter "Logout"?
eg: ../Login.php?Logout=true
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com |
 |
 |
saseow
Posts: 744
|
| Posted: 02/04/2009, 12:03 AM |
|
Yes it does include the ?logout=true
|
 |
 |
n0000spam
Posts: 15
|
| Posted: 02/04/2009, 12:32 AM |
|
http://www.site.com & http://site.com - different sites for CCS. If your login url start from "www." then logout url must start from "www." too. If your login page palced in subdir "www.site.com/subdir/login.php" logout page must me placed in that subdir too. Otherwise CCS install different session's cookies for all my examples.
|
 |
 |
saseow
Posts: 744
|
| Posted: 02/04/2009, 12:52 AM |
|
I have noticed a few more things:
Say I open the site in Opera, login and logout. I can then try and open the site in another browser like Chrome or Firefox and cannot get past the login page. If I delete 'Private Data' in Opera everything returns to normal and I can login in again in any browser.
Something is being stored on my disk. Thinking this, I can log out, go and delete all the session files .... and still can't get past the login page.
I really am at a loss on this one!
|
 |
 |
damian
Posts: 838
|
| Posted: 02/04/2009, 12:57 AM |
|
ahhh just format your computer and start again!
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
saseow
Posts: 744
|
| Posted: 02/04/2009, 1:14 AM |
|
Oh Damian .... don't even joke like that! :)
|
 |
 |
saseow
Posts: 744
|
| Posted: 02/04/2009, 1:31 AM |
|
Solved but WHY?
I simply copied a login page from another project that works correctly and all is fine.
This however does not sort out the hassle basically. As I said, I have even rebuilt the page several times with no solution.
Oh well, strange things do happen!
|
 |
 |