473,805 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

form authentication slidingExpirati on not sliding

framework 1.1

in our webapp, we are using forms authentication.

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

<authenticati on mode="Forms">
<forms name="loginauth " path="/" loginUrl="login auth.aspx"
protection="All " timeout="5" slidingExpirati on="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.EventArg s) Handles MyBase.Load
Dim ctx As HttpContext = HttpContext.Cur rent

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

Response.Write( "<br><br>Curren t Time: " & Now().ToString)
Response.Write( "<br>Auth Cookie Expires: " &
authCookie.Expi ration.ToString )
Response.Write( "<br>Auth User Data: " & authCookie.User Data)
End Sub
Jul 21 '05 #1
0 2176

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

Similar topics

1
2154
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 the sliding form visible at first (an no ShowDialog(), because I have to do the sliding). After that the form is "sliding" with a ticker (just like a notification window in the taskbar which "slides" up). Now when the "sliding" is finished I...
1
1350
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 machine. The web.config file looks like this <authentication mode="Forms" > <forms name=".OURCOMPANYEmployee" loginUrl="login.aspx"
2
2914
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 users). If user is from intranet, web server should recognize it and application should create additional options in controls regarding groups the user belongs to. If user is from extranet it should be logged in as anonymous and a link to login page...
0
371
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" path="/" loginUrl="loginauth.aspx"
4
1204
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 standard asp.net 2.0 authentication framework? Any help is appreciated
2
1002
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
3082
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 system. However, it doesn't after I uploaded the files to my web host site. Any setting to modify to make my hosting html files need to be authenticated too?
0
1740
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 persistent with an expiry time of 30 minutes from now, unless you have specified a timeout attribute in the forms element in the web.config. Quoting from msdn: "timeout: Optional attribute. Specifies the time, in integer minutes, after which...
5
4831
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
10613
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10368
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10107
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7649
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5544
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3846
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.