473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Q regarding forms authentication and timeouts

Okay, so I finally figured out forms authenticaton, to a degree and I
still have one question:

If a user walks away from my application, and the cookie expires, and
then he comes back, does forms authentication automatically force him
back to my logon page? Or does the session just expire? Or does that
depend on whether or not the cookie expires before the IIS session?

Can someone help me out here?

Thanks

May 21 '06 #1
2 1284
Actually Asp.net Works on session in two ways. Either CookieLess or Cookie
Based. Now when the yser walks away from your application and cookie expires
it means that session is expired and on coming back to the same website,
forms authentication will force him to go to Login page of your website.

Pls provide feedback so I can know how helpful my post is.

"Mike Hofer" wrote:
Okay, so I finally figured out forms authenticaton, to a degree and I
still have one question:

If a user walks away from my application, and the cookie expires, and
then he comes back, does forms authentication automatically force him
back to my logon page? Or does the session just expire? Or does that
depend on whether or not the cookie expires before the IIS session?

Can someone help me out here?

Thanks

May 21 '06 #2
Okay, that makes sense (I think). So let's assume I'm using a
cookie-based session. If the cookie expires in 30 minutes, the user
will always be redirected to my logon page, right?

What happens if I'm not using a cookie? Does my session state just get
invalidated (wiped out)? Becaues that seems to be happening in an
application that I am currently working on that doesn't use forms
authentication. (It's all built from scratch.) I'm not sure if there's
a way that I can retrofit the application to programmatically sense
whether or not the session has expired.
Altaf Al-Amin Najwani wrote:
Actually Asp.net Works on session in two ways. Either CookieLess or Cookie
Based. Now when the yser walks away from your application and cookie expires
it means that session is expired and on coming back to the same website,
forms authentication will force him to go to Login page of your website.

Pls provide feedback so I can know how helpful my post is.

"Mike Hofer" wrote:
Okay, so I finally figured out forms authenticaton, to a degree and I
still have one question:

If a user walks away from my application, and the cookie expires, and
then he comes back, does forms authentication automatically force him
back to my logon page? Or does the session just expire? Or does that
depend on whether or not the cookie expires before the IIS session?

Can someone help me out here?

Thanks


May 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
0
by: Mark MacRae | last post by:
I am trying to do some testing of my application with respect to timeouts (i.e. Session timeouts). I took the advice of somebody else in this newsgroup (I think) and set my forms authentication...
1
by: dotnetprogram | last post by:
I have a web application in the parent directory(http://localhost/). it has a web.config setting as follows: <authentication mode="Forms"> <forms loginUrl="Login.aspx" name="UserToken"...
1
by: Andy Fish | last post by:
Hi, I have an asp.net web app whereby I authenticate the user with Forms Authentication and store details about him in the session. I want to be able to catch an event when the users...
0
by: Jason | last post by:
What is the best way to set these timeouts? Should both be the same and what will happen if they are different? Thanks Jason
4
by: 23s | last post by:
I had this problem in the past, after a server reformat it went away, and now after another server reformat it's back again - no clue what's doing it. Here's the flow: Website root is public, no...
2
by: mircu | last post by:
Hi, I need a quick solution to make my application behave correctly when one of these timeouts occurs. I have some logic in session_start but when the authentication cookie timeouts the user is...
1
by: Smokey Grindel | last post by:
I want to show a page that says you timed out basically when a user that is authenticated via forms based authentication times out (after 60 minutes of inactivity) how do you do this? right now it...
1
by: Mufasa | last post by:
Folks, This is sort of a continuation of my question with session timeouts but slightly different. I am using Forms authentication with the following code: FormsAuthenticationTicket lTicket =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.