logout page in asp 3.5 with c#

Posted by Suneel161 under Regular Expressions on 2/11/2010 | Views : 2675 | Status : [Member] | Replies : 3
hiii..
im using two textboxes username and password.one button logon. entered user name and password checks it wheather valid user or not ,if valid login the how to creat logout ...




Responses

Posted by: Raja on: 2/11/2010 [Member] Starter

Up
0
Down
Please download the sample project from http://www.dotnetfunda.com/tutorials/controls/ page and check how the Logout functionality has been implemented.

Thanks

Regards,
Raja, USA

Suneel161, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nishithraj on: 2/11/2010 [Member] Bronze

Up
0
Down
You can try it with login controls

Check it out

http://ineedfile.com/login-controls-in-asp-net3-5


Mark this as answer, if it is.....

With regards
Nishithraj Narayanan

Suneel161, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Neeks on: 2/11/2010 [Member] Bronze

Up
0
Down
You can use session.
If the user id valid you can assign the user id to session variable
Session["UId"] = txtUserName.text;

And when user clicks on LogOut you can set the session to Null
Session["UId"] = null;

Suneel161, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response