953,979 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

not logging out properly

hi
When I log out from the site even then my user name appears at the top line of the window. and when I closed the net and re open giving the address www.daniweb.com even then my user name appears in the window and when I click the name it automatically gets log in.

I have tried several times but the problem is still there.
Pl help

kehar
Junior Poster in Training
72 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

Hello my friend,

Your making sure to click "LOGOUT" right?

After you logout,simply refresh the page and you should indeed by logged out!

Good luck!

The Dude
Nearly a Senior Poster
3,485 posts since Dec 2005
Reputation Points: 1,054
Solved Threads: 31
 

yes, it is working but when I click Back botton the name is still appearing but for name shake only as I have to re-log in.

kehar
Junior Poster in Training
72 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

When you click the back button in your browser, your computer is loading the cached version of the page for you.

cscgal
The Queen of DaniWeb
Administrator
19,420 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Thats due to permanent cookie written in your system by that website.
It is written permanently when you tick check box for "Remember me on this computer".
To get rid of this, just delet cookies from your system from internet explorer.
http://www.cosmicwebservices.com/Login.aspx

sandeep.thakur1
Newbie Poster
10 posts since Oct 2007
Reputation Points: 8
Solved Threads: 0
 

Hi !,
Today i too faced same problem so have solution now, may be this will help you.
you need to add this code to every page's "init" n not to login page please.
[code]
Response.Cache.SetCacheability(HttpCacheability.NoCache) 'stopping caching for login
If Session("Logged_IN").Equals("No") Then
Response.Redirect("Login.aspx")
End If
[\code]


and here is my global.asax file for your reference.
you need toset your like this.
[code]


<%@ Application Language="VB" %>


[\code]

sandeep.thakur1
Newbie Poster
10 posts since Oct 2007
Reputation Points: 8
Solved Threads: 0
 

I'm able to successfully log out on Internet Explorer, FireFox, and Opera on Windows Vista and in Safari and FireFox on OS X.

cscgal
The Queen of DaniWeb
Administrator
19,420 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Well now I'm confused. [Mods, feel free to undelete the post I deleted and perhaps split this thread.]

I couldn't log out (from FF). I deleted all cookies (crap, but WTH). Then I could achieve a logout.

I logged in to respond to Dani's response which apparently beat my deletion, and now I'm trying to figure out IN/OUT. This end of the pipe is confused.

[edit]Heck just delete my bumpage. I seem to have resolved it on this end.

Dave Sinkula
long time no c
Team Colleague
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
 

if u want a demo just visit www.cosmicwebservices.com , I just created a nice authentication and authorization in security section. I gave the save idea here to this thread..

sandeep.thakur1
Newbie Poster
10 posts since Oct 2007
Reputation Points: 8
Solved Threads: 0
 

Hmm.. actually, I'm now experiencing that problem. I've tried logging out in firefox on ubuntu and vista, but it doesn't ever actually log me out. :-/

joshSCH
Industrious Poster
Banned
4,864 posts since Jul 2005
Reputation Points: 1,315
Solved Threads: 10
 

if u are using Caching in pages , set them off, or reduce time of caching. Thats one of the main problem developer faces.

sandeep.thakur1
Newbie Poster
10 posts since Oct 2007
Reputation Points: 8
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You