First of all, what do you mean "protected". How did you protect it? Who has
access?
Jeff
"Samuel Shulman" <sa************@ntlworld.com> wrote in message
news:up**************@TK2MSFTNGP05.phx.gbl...
How can i use the Forms Authentication or Basic Authentication to perform a
similar function
"Jeff Dillon" <je********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Use either Forms Authentication or Basic Authentication. You can't "Set" a
user as authenticated.
"Samuel Shulman" <sa************@ntlworld.com> wrote in message
news:uu**************@TK2MSFTNGP02.phx.gbl...
Let me try and clarify my question
If the user types in the url the Login.aspx file then enters the username
and the password, clicks the login button and the form validates the values
against values from the database
In case the values are correct and i want to send the user to another page,
currently when i try doing it using the Response.Redirect method then if the
destination page is in a protected folder it returns back to the login page
because ASP.NET doesn't know that this user is authenticated
So all I need is another method that set the user as authenticated and then
when i call the
Response.Redirect Method it will work
Of course if the user was automatically Redirected by the system to the
login page then I can use the
Web.Security.FormsAuthentication.RedirectFromLogin Page method
Thank you for your help
Samuel
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:3B**********************************@microsof t.com...
Samuel,
If a user is logged in,
the User property of the Page class will have a Name property with the
username;
you can access this from anywhere in your application.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Samuel Shulman" wrote:
Is there a method that will indicate the person who logged successfully
is
Logged and therefore allowed to browse freely other then using the
'Web.Security.FormsAuthentication.RedirectFromLogi nPage' method
thanks,
Samuel