473,796 Members | 2,603 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 2175

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
2913
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
1202
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
1001
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
3081
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
1738
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
4830
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
9535
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10021
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...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7558
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
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5453
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4127
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
3
2931
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.