473,402 Members | 2,046 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,402 software developers and data experts.

Authenticate and session

Hi

I am using Forms Authentiaction. In Login Page, after authenticate, I read
from database some info and save them into session.

I set session time out 1 minutes, after that time, session will be destroy
but authentication info still alive. When user request again, his
authentiacation info still valid but there is no session data of him?

how can I solve the problem

--
Vi
Nov 18 '05 #1
3 1695

Form authentication timeout is independent of the Session timeout. Forms authentication uses a cookie which remains valid even after session restart

best solution is to adopt an independent and design your app accordingly - i mean user authenticates but Session contains no data. then go ahead and populate the sessions

Another workaround is to use "OnAcquireRequestState" event and call FormsAuthentication.SignOut() inside that if the session value is blank

Hope this hel

Avnees
MCAD,MCSD.Ne
then the application and therefore the Session will be restarted, but the authentication cookie will still be vali
----- TruongLapVi wrote: ----

H

I am using Forms Authentiaction. In Login Page, after authenticate, I rea
from database some info and save them into session

I set session time out 1 minutes, after that time, session will be destro
but authentication info still alive. When user request again, hi
authentiacation info still valid but there is no session data of him

how can I solve the proble

--
V

Nov 18 '05 #2
I think ur Session and forms cookie timeout should be in Synchronous

i.e same should be the value...
--
Thanks and Regards,

Amit Agarwal
Software Programmer(.NET)
"Avneesh" <av*****@helloprojects.com> wrote in message
news:FF**********************************@microsof t.com...

Form authentication timeout is independent of the Session timeout. Forms authentication uses a cookie which remains valid even after session restart.
best solution is to adopt an independent and design your app accordingly - i mean user authenticates but Session contains no data. then go ahead and
populate the sessions.
Another workaround is to use "OnAcquireRequestState" event and call FormsAuthentication.SignOut() inside that if the session value is blank.
Hope this help

Avneesh
MCAD,MCSD.Net


then the application and therefore the Session will be restarted, but the authentication cookie will still be valid ----- TruongLapVi wrote: -----

Hi

I am using Forms Authentiaction. In Login Page, after authenticate, I read from database some info and save them into session.

I set session time out 1 minutes, after that time, session will be destroy but authentication info still alive. When user request again, his
authentiacation info still valid but there is no session data of him?

how can I solve the problem

--
Vi

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004
Nov 18 '05 #3

Please check an in-depth post on asp.net weblog...

Here it goes http://weblogs.asp.net/dreilly/archi...6/04/8276.aspx

Avneesh
MCAD, MCSD.Net
Nov 18 '05 #4

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

Similar topics

5
by: Joeri KUMBRUCK | last post by:
Hello, I'm trying to create an ASP page where users can type in a username and password, and these credential should be checked with active directory. If username and password are correct, the...
2
by: Alfred Salton | last post by:
I am posting a form with data which has timed-out and forced a login. I assumed that the following code would re-authenticate the session (assuming the supplied userName and password are correct)...
0
by: Alfred Salton | last post by:
I am posting a form with data which has timed-out and forced a login. I assumed that the following code would re-authenticate the session (assuming the supplied userName and password are correct)...
3
by: mike | last post by:
Hello. I have a web site that is using Basic Authentication (yes, I am using HTTPS) and is sessionless (I am maintaining session state in a database via a custom component). When the user...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.