Login

  • Thread starter Thread starter Mukesh
  • Start date Start date
M

Mukesh

HI

I am working on a webproject in .net2.0

I have to logged out the user programitally
not by using inbuilt login ctrls

How can i do this
 
HI

I am working on a webproject in .net2.0

I have to logged out the user programitally
not by using inbuilt login ctrls

How can i do this

Look at the FormsAuthentication Class (System.Web.Security)
 
Why can't you use the built-in Login Controls? This is very mysterious.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
Hi Mukesh,

As Alexey has mentioned, the "FormsAuthentication" class's "SignOut" method
can help make the current Forms Authenticated user logged out.

#FormsAuthentication.SignOut Method
http://msdn2.microsoft.com/en-us/library/system.web.security.formsauthentica
tion.signout.aspx

However, I'm wondering when and where would you call this method in your
web application? Generally, the preferred approach is put a button on page
to let user click it to logout and the FormsAuthentication.SignOut method
should be called during a page's request processing cycle (such as in a
postback processing cycle). After you call this method, you can use
Response.Redirect to forward the user to a default page so as to make the
logout status obvious.


Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello Mukesh,

Have you got any progress on this issue or does the suggestion in previous
messages help you some? If there is anything else we can help, please feel
free to post here.


Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top