473,383 Members | 1,892 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,383 software developers and data experts.

Timeout not working for Formauthentication

tfs
I have a web program that is using formauthentication.

My web.config file is
<configuration>
<appSettings>
<add key="MM_CONNECTION_HANDLER_ServerDino"
value="sqlserver.htm" />
<add key="MM_CONNECTION_STRING_ServerDino"
value="Persist Security Info=False;Data Source=Dino;Initial
Catalog=KrystalClear;User ID=sa;Password=;" />
<add key="MM_CONNECTION_DATABASETYPE_ServerDino"
value="SQLServer" />
<add key="MM_CONNECTION_SCHEMA_ServerDino"
value="" />
<add key="MM_CONNECTION_CATALOG_ServerDino"
value="" />
</appSettings>
<system.web>
<customErrors mode="Off" />
<authentication mode="Forms">
<forms name="SECAUTH" loginUrl="login.aspx"
timeout="5">
<credentials />
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
Here is the cookie that shows up in my cookies file:

SECAUTH
83159EFF5FD04C3A8A3272D2C6151C78A65430DBE165837198 5286A3783646794F635ECF099CFE328AE3CC6FFBB5A02FD715 454B1B3809D149271818E24E972345362A0E5E1BF67D28044A 511AA5BF59B4ECC2E3AA8CAA4D 192.168.122.55/
1536
1961189632
33319508
3778607280
29645820
*


My login page works correctly and gets redirected correctly. After
that, when I go to my pages it doesn't go to the login page (which it
shouldn't).

The problem is 20 minutes later, it still doesn't go to the login page
and the cookie is still there. I thought the timeout was supposed to
delete the cookie after the timeout period - it doesn't.

I did read that it doesn't work for persistant cookies. If this is
the case, how do I make time "not persistant"?

Thanks,

Tom.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 18 '05 #1
1 1520
tfs
Figured it out.

I need to change the 2nd parameter of
FormsAuthentication.RedirectFromLoginPage from true to false to use
non-persistant cookies.

Tom
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 18 '05 #2

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

Similar topics

3
by: Richard Roche | last post by:
My application is timing out between 7 and 8 minutes of inactivity. I'm using forms based authentication and have sessionstate timeout="20". I've even displayed this value on the web page. ...
1
by: tfs | last post by:
I have a web program that is using formauthentication. My web.config file is <configuration> <appSettings> <add key="MM_CONNECTION_HANDLER_ServerDino" value="sqlserver.htm" /> <add...
4
by: Nevyn Twyll | last post by:
I've been working on an asp.net application and everything's been great. But suddenly, whether I'm tyring to use a database on my own machine, or on my server, I'm getting a timeout when trying to...
2
by: Aryan | last post by:
Hi, I have put my session related parameter in web.config under system.web, given below is the code for same. <system.web> <sessionState timeout ="1440" mode ="InProc" /> </system.web> this...
1
by: Vivian | last post by:
hi, I'm new to .aspx and want to ask a question about FormAuthentication. I've created a login page and a default page, it works well in the login page and can redirect to the default page. The...
7
by: dadocsis | last post by:
I have a custom VB.net application that runs a query against an SQL server that takes more than 3 minutes. Right now after 3 minutes it times out. So far after doing my research I have changed the...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
1
by: ayush patel | last post by:
Hi, I developed a website using ASP. my client does not want the application to timeout even after 8-9 hours(if they are working). i know that connection timeout is set for timing out when the...
4
by: goscottie | last post by:
I used submodal as my popup window. With some tweaks, it working great in my app. However, I can't find a way to detect session timeout in the popup window. The app is a form based...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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...

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.