Ask a Question related to ASP.NET Security, Design and Development.
-
Peter Royle #1
I want Forms Authentication only during session
Hello out there,
I am building an ASP.NET app that uses Forms authentication (as that
seems the simplest way to do it). It works fine "out of the box". But
what I would like is for the authentication to last only for a user's
session, then the next time they try to connect, they are given the
Login.aspx form again (their environment is not secure, so I want to
force a logon each time). I'm not clear how I can achieve that.
Any (simple) suggestions?
Cheers,
Peter Royle
Peter Royle Guest
-
Please help: Forms authentication & new session -> does not return to the specified page after login
If the user is not logged in and no session is present for the user when requesting a specific page it seems that the returnurl querystring... -
Forms Authentication | session ends | asp.net recycle
Hi Guys I was wondering if you can help me out with the following problem. I created a basic secure | non secure website. So I have the root... -
User Session issue with ASP.NET Forms authentication & Windows 2003
Hi, I first posted this query in just the aspnet ng but didn't get a reply so I'm posting here (probably more appropriate) Hope one of you guys... -
Forms Authentication with Session State
Hey All. Currently, I have a login page that creates an encrypted Authentication Cookie (using FormsAuthenticationTicket). This happens after... -
Session with Forms authentication
Hi, I use Forms Authentication type in my project.When I start my app. in the browser it works well.First it redirects the login page and after I... -
Paul Hobbs #2
Re: I want Forms Authentication only during session
This is very simple to implement:
When the user is authenticated, and you set the session cookie, make the
Persistent Cookie parameter False:
FormsAuthentication.RedirectFromLoginPage(tbEmail. Text, False)
Hope this helps,
Paul Hobbs
"Peter Royle" <pjroyle@tiscali.co.uk> wrote in message
news:fc4ec3e.0312040735.7523915f@posting.google.co m...> Hello out there,
>
> I am building an ASP.NET app that uses Forms authentication (as that
> seems the simplest way to do it). It works fine "out of the box". But
> what I would like is for the authentication to last only for a user's
> session, then the next time they try to connect, they are given the
> Login.aspx form again (their environment is not secure, so I want to
> force a logon each time). I'm not clear how I can achieve that.
>
> Any (simple) suggestions?
>
> Cheers,
> Peter Royle
Paul Hobbs Guest
-
Peter Royle #3
Re: I want Forms Authentication only during session
"Paul Hobbs" <phobbs@blueprint.net> wrote in message news:<#bpKKcpuDHA.3220@tk2msftngp13.phx.gbl>...
Thanks, Paul. That's what I wanted. I knew I'd seen it somewhere!> This is very simple to implement:
>
> When the user is authenticated, and you set the session cookie, make the
> Persistent Cookie parameter False:
>
> FormsAuthentication.RedirectFromLoginPage(tbEmail. Text, False)
>
> Hope this helps,
>
> Paul Hobbs
Peter
Peter Royle Guest



Reply With Quote

