Login

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
 
G

Guest

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)
 
K

Kevin Spencer

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
 
S

Steven Cheng[MSFT]

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.
 
S

Steven Cheng[MSFT]

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.
 
Joined
Apr 19, 2007
Messages
2
Reaction score
0
Login .net 2.0

Mukesh said:
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


i also want to know about it...:)
 

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

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top