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

form authentication slidingExpiration not sliding

framework 1.1

in our webapp, we are using forms authentication.

=================
Auth Section from web.config
=================

<authentication mode="Forms">
<forms name="loginauth" path="/" loginUrl="loginauth.aspx"
protection="All" timeout="5" slidingExpiration="true">
</forms>
</authentication>

After sign in, I use the following code to get the expiration date/time from
the current authentication cookie, but the expiration time does not change as
I refresh the page, or ruturn after visiting other pages on the site. The
current time does change with each hit of the debug page. This is causing an
issue because our user is getting timed out.

==================
output from debug page
==================

Current Time: 10/11/2004 11:53:31 AM
Auth Cookie Expires: 10/11/2004 12:52:27 PM
Auth User Data:

==================
Source that generate the output
==================
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim ctx As HttpContext = HttpContext.Current

If ctx.Request.IsAuthenticated Then
Dim id As FormsIdentity = CType(ctx.User.Identity, FormsIdentity)
authCookie = id.Ticket
End If

Response.Write("<br><br>Current Time: " & Now().ToString)
Response.Write("<br>Auth Cookie Expires: " &
authCookie.Expiration.ToString)
Response.Write("<br>Auth User Data: " & authCookie.UserData)
End Sub
Jul 21 '05 #1
0 2126

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

Similar topics

1
by: Franz Gsell | last post by:
Hi together, I have got a "sliding" form which becomes active when a user clicks on a button in another form. In my function which starts the "sliding" mechanism is a call to this.Show() to make...
1
by: Shimon Sim | last post by:
Hi Working on a project that requires Form authentication. My client reports that he is thrown out to log in page every 5-10 min. I can't understand why. I don't get the same behavior on my...
2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
0
by: Ben S | last post by:
framework 1.1 in our webapp, we are using forms authentication. ================= Auth Section from web.config ================= <authentication mode="Forms"> <forms name="loginauth"...
4
by: npbuggia | last post by:
hey, I'm trying to configure it so when users log in they don't ever have to log in again from the same machine (okay, maybe within a month or something). is there a way to do this with the...
2
by: Sumi | last post by:
Hi, I've the following code in my web.config - <authentication mode="Forms"> <forms loginUrl="Login.aspx" protection="All" timeout="30" name=".ASPXAUTH" requireSSL="false"
2
by: nick | last post by:
I have an Asp.Net 2.0 application using form authentication. I want the html pages be protected by the authentication system too. The accessing of html files need to be authenticated in my local...
0
by: robert | last post by:
I have noticed in .net 2 that when authenticating a user, setting the cookie using either redirectfromloginpage or setauthcookie, specifying true for the persistent parameter that the cookie is...
5
by: drasko | last post by:
Hi, I have the following structure of my web-site root | -folder1 (secure) | -folder2 (secure) Now, as you can see, both folders are secure and need to have
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:
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: 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...
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
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...

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.