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

Form Authorization Ticket Not Expiring

Hi,

I created a login Form that logs into my application.

In the Web.config file I have

<authentication mode="Forms" >
<forms name="loginForm" loginUrl="login.aspx"
protection="All" timeout="5" > ...

The problem I'm having is my application won't timeout after 5
minutes. The only time the ticket expires is when I Sign out of the
application.

Does any one have any suggestion,or know why this is happening?

Any help would be greatly appreciated.
Nov 18 '05 #1
1 951
When you called:

FormsAuthentication.RedirectFromLoginPage("name", bool persist);

Did you happen to pass the 'bool persist' argument as true? If so you just
created a cookie independent from your session that's now stored on your
machine. Every time you login the application will find this cookie and use
it. But don't worry the lifetime of it is only 50 years or so.

If this sound's like the problem try changing the second argument to false
and then the cookie starts using that timeout property in web.config.

good luck
Trent




"chongo" <oa*****@hotmail.com> wrote in message
news:ef***********************@posting.google.com. ..
Hi,

I created a login Form that logs into my application.

In the Web.config file I have

<authentication mode="Forms" >
<forms name="loginForm" loginUrl="login.aspx"
protection="All" timeout="5" > ...

The problem I'm having is my application won't timeout after 5
minutes. The only time the ticket expires is when I Sign out of the
application.

Does any one have any suggestion,or know why this is happening?

Any help would be greatly appreciated.

Nov 18 '05 #2

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

Similar topics

11
by: David W. Simmonds | last post by:
I have a form that will prompt for a user name/password. In VS.NET, I have the protected form in a folder named Admin. I have a Web.config file in that folder as well. It contains the following...
3
by: Mike | last post by:
I have a web application that the forms authentication cookie is not expiring correctly. When I look at the trace information of a newly requested page after the session and forms authentication have...
3
by: nick | last post by:
Hi, How should I write the web.config file to allow some of the aspx files be executable to all users and others are required users to login? All the aspx files are in the same folder.
2
by: craigkenisston | last post by:
Hi, I create a one day ticket in my authentication code like this : private void btnLogin_Click(object sender, System.EventArgs e) { string _userId = txtUserId.Text; string _password =...
2
by: pv_kannan | last post by:
I recently found out that my authentication cookies are not expiring even though I have set the persist property to false. As a result, users are able to access the secure websites with indifferent...
0
by: nick | last post by:
I have a sitemap <sitemap ...> <siteMapNode url="aaaa.aspx" title="aaaa" /> <siteMapNode url="http://bbbb.com" title="bbbb" /> </sitemap> The first one works well with form authorization....
1
by: nick | last post by:
I have create a Asp.net 2.0 application empsite with form authorization. And I have create an entry in IIS application mapping: ..doc...
7
by: dbnut | last post by:
• I am using Access Trial 2007 in 2003 Mode. • I designed a Form to track what tickets still need to be issued using a split form: ________________________________________ Ticket 14 ...
0
by: Scott | last post by:
Hi, Any help would be greatly appreciated as I've reached wits end with this problem.... I have two web apps. The main one is written in asp.net 1.1 and the second one I want to call from the...
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
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.