borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (how to configure server for asp.net?)Next Topic (Dialog boxes Of Asp.net) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : Asp.net and Authentication problem?
Poster Message
tri_inn
Level: Regular User
Registered: 26-08-2002
Posts: 395

icon Asp.net and Authentication problem?

first time after being authenticated when user close the browser and again open the browser and
visit the same page then automatically user is going to be authenticated.please tell me how could i
prevent this that whenever a user will visit my site he will not be authenticated automatically

26-04-2005 at 05:47 AM
View Profile Send Email to User Show All Posts | Quote Reply
CLIPER
Level: Big Cheese

Registered: 26-07-2005
Posts: 27
icon Re: Asp.net and Authentication problem?

quote:
tri_inn wrote:
first time after being authenticated when user close the browser and again open the browser and
visit the same page then automatically user is going to be authenticated.please tell me how could i
prevent this that whenever a user will visit my site he will not be authenticated automatically




Well, I suggest to use Session vars..

____________________________
CLIPER
06-05-2006 at 05:50 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
~Bean~
Level: VB Guru


Registered: 07-04-2003
Posts: 488
icon Re: Asp.net and Authentication problem?

Which begs the question, how are you authenticating your users?


____________________________
Eggheads unite! You have nothing to lose but your yolks.

10-05-2006 at 01:49 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
Bharathi
Level: Scholar

Registered: 11-04-2005
Posts: 31
icon Re: Asp.net and Authentication problem?

Hi,

If you are using teh forms Authentication, Type thw following code in the code-behind window of the Default.aspx page.

Sub SignOut(ByVal objSender As Object, ByVal objArgs As EventArgs)
'Delete the cookie and sign out
FormsAuthentication.SignOut()

This procedure allows the user to sign out and deletes the cookie from the user's computer. This will even delete a persistent cookie.


Regards
bhar
Books for programmers
http://www.vkinfotek.com
    

14-08-2006 at 05:24 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : ASP.Net : Asp.net and Authentication problem?
Previous Topic (how to configure server for asp.net?)Next Topic (Dialog boxes Of Asp.net) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder