Re: How to implement a automatic login function
- From: "Cowboy \(Gregory A. Beamer\)" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 2 Apr 2007 08:09:44 -0500
I am not sure I understand you.
Do you mean:
1. User signed in once and has come back to the site? If so, set the persistence flag to true and the cookie will live on across all sessions.
2. User has signed in and is now surfing other pages? If so, you need to do nothing, as the user will be signed in.
3. User has signed into another site in your domain and you wish to allow him to hit all sites? If so, set the machines keys to the same value on all of your sites and call the cookie, explicitly, by the same name - all in config file. NOTE: You will not be able to switch stored session values from site to site.
4. You want certain users to be able to fake the login and be authenticated with another account? This can be done with the API, but how are you going to identify those users? Think this through carefully, as it is quite easy for a hacker to figure out he can use your site with querystrings, if that is your method of bypassing security. If you do not like the API, you can create MembershipUser objects and attach to an ongoing session. That will log them in, this time.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
*********************************************
Think outside the box!
*********************************************
"Victor" <victor@xxxxxxxxxxxxxxx> wrote in message news:eSk9IDLdHHA.1312@xxxxxxxxxxxxxxxxxxxxxxx
hi guys.
In my project, now I am using a asp.net login control and a customized membership provider to do the form authentication. Now I want some function that user can skip the login form and be authenticated and login the system automatically base on the username and password already in the session. Is that possible to do ? and how to do it?
Cheers
Victor
.
- References:
- How to implement a automatic login function
- From: Victor
- How to implement a automatic login function
- Prev by Date: Recognise the last event type
- Next by Date: Re: xml - write to browser
- Previous by thread: Re: How to implement a automatic login function
- Next by thread: AJAX Works Locally in VS2005 but not on Web
- Index(es):
Relevant Pages
|