CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Logout Problem (RESOLVED sort of)

Print topic Send  topic

Author Message
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!
View profile  Send private message
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
View profile  Send private message
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!
View profile  Send private message
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
View profile  Send private message
saseow

Posts: 744
Posted: 02/04/2009, 12:03 AM

Yes it does include the ?logout=true
View profile  Send private message
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.
View profile  Send private message
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!
View profile  Send private message
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.... :)
View profile  Send private message
saseow

Posts: 744
Posted: 02/04/2009, 1:14 AM

Oh Damian .... don't even joke like that! :)
View profile  Send private message
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!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.