Pages Expire
What causes asp pages to "expire" - for example, on some PCs (not all, not all the time), when you hit the back button you get a "page expired" message.
View RepliesWhat causes asp pages to "expire" - for example, on some PCs (not all, not all the time), when you hit the back button you get a "page expired" message.
View RepliesIs this an accurate article on making web pages expire?
View Replies View RelatedI've created an admin side for my ASP site and I use session vars to provide
page security.
Just as a bit of advice, I want to know if I should expire each admin page
so that others can't bring them up. I know the session var check will
bounce them back to the login page, but I'd rather they didn't even see this
page if they aren't authorised.
Some of our web site users are experiencing a strange behavior of IE 6 (Sp1 or not). It looks like their ASP Session Cookie expire before time.
Here are some details. The user connects to our web site and we keep his ID in the Session object. At the beginning of every page, we check the presence of this ID and if it is missing, we redirect the user to the connection page.
Somewhere in the site, we create a temporary cookie. At some point, this new cookie is deleted with the following ASP code :
Response.Cookies(STR_FICHR_TEMN_CONTX).Path = "/"
Response.Cookies(STR_FICHR_TEMN_CONTX) = ""
Response.Cookies(STR_FICHR_TEMN_CONTX).Expires = CDate
("2000-01-01")
When the user clics on an hyperlink, he is redirected to the connection page because his ASP cookie is no more (I have verified that in our IIS log : there is no request
logged after the execution of the above code).
Any ideas ? Could this be an Internet Explorer bug ?
understand that when one closes the browser, the session gets killed in ASP,
i encountered a scenario, where even after the browser was closed, the session was active, let me explain, i have written a code to check if the session variable contains the loginname then i am allowing access to a certain asp page to the user.
the code worked. thereafter i closed the browser, opened the browser again and accessed the same url, surprisingly it allowed access to the page and did not ask me for the login name, clearing the cache also did not help.
Further, I need to update some table as well when the user closes his browser window (an update query to set the flag to 0 for tracking user status). How can I do this. A sample code will be highly appreciated.!
Lastly, when the user clicks the logoff button, he successfully logout , but he can come back with the back button on the browser. Is there a way to prevent this,that is, once the user logout and tries to come back, he SHOULD NOT be allowed to do so rather he should be redirected to a page where he can login again.
Did anyone know how to set the page are expire after logout? or something that had been sent using form. user can not go back t oview it again by clicking at the back button. Like hotmail.com
when user log out and hit the back button, the page display that the page are expire.
I've searched the net for ways to expire a page immediately, so when the
user hit 'Back', they receive the "Page Has Expired" error page and I've
seen a number of posts on how to do it - with the code below:
<%
Response.ExpiresAbsolute = #1/1/1980#
Response.AddHeader "cache-control", "no-cache"
Response.AddHeader "pragma", "no-cache"
%>
However, when I try using this code, nothing happens, when I click 'Back',
it simply takes me back to the previous page. The "Expired Page" error page
should display, correct?
How can I set my cookies to expire when the the user leaves the site?
View Replies View Relatedhow can i set my cookie expire after 2 minutes?
Response.Cookies("KensSurvey").Expires=?
Whenever password is expired & force user to change NT password for the web server, it seems to be assumption that asp application gives "interanal server error". Is it true that forcing user to change password will generate "internal server" error? BTW..this is caused in our intranet site and it is NT authenticated site.
View Replies View RelatedI have a form that users fill and submit to a server side page. when a user uses the back button to go back to the form, I want the form page to expire. Pls how can i implement this.
View Replies View RelatedI want to expire a cookie collection in my asp page and I gave it like this;
Response.Cookies("whereq").Expires = Now()
and this "whereq" collection has 50 keys. The problem is my cookie didn't expire from the above code. I hope there should be a way to do so without writing 50 expire lines.
Is it possible to make a cookie NEVER expire? or not?
View Replies View RelatedI would like to know how can I remove expires date from asp I am not this can be done in access or asp script. There are a field i n access datbase say p_expdate which I delete and replace p_date which display the current post date
Which specific file in asp should I modify I had look into the file like register.asp and search for p_expdate. I had rename to p_date. Do you think the setting on my datbase or value I need to set.
After moving my application from W2K / IIS5 to W2K3 / II6 the application works pefrectly BUT the user session expire prematurely (after about 2 mins) rendering the application unusable.
View Replies View RelatedSession expiring immediately. what could be the reason ?
View Replies View Relatedif user clicked the Sign Out button, the session abandon and the login page displays. If the user clicks the browser Back button, it won't show the previous page. It shows only the login page. How does is work?
View Replies View Relatedi have 2 application variables called totalAdminLoggedIn and totalUserLoggedIn
when ever an admin login, I increment the totalAdminLoggedIn value by one
and when a normal user logg in, the totalUserLoggedIn value will be incremented by one.
how can i change the values when the session expire ? i can reduce the value manually when they logoff like:
if session("userCategory")="admin" then
Application("totalAdminLoggedIn")=Application("totalAdminLoggedIN")-1
elseif session("userCategory")="user" then
Application("totalUserLoggedIn")=Application("totalUserLoggedIn")-1
end if
session.contents.remove "userCategory"
but what if the session expires automatically or if they close the window suddenly?
ie. i want to do something like below? Code:
How does the expire date work setting it server side with asp.
I know with javascript setting it client side it will be set to the clients
local time, and therefore expire when the clients local time reaches the set
expire-time.
But if it is an expire time set on my server in California, and the cookie
is put on a computer that is running on London Time, and the expire time is
set at the server as 20 minutes from now, the London computer will think
that the cookie has expired 7 hours and 40 minutes ago, right?
How does this actually work? Is it proper to just set my expire time as:
dtmExp = DateAdd("n", 20, Now())
Response.Cookies("MyCookie").Expires = dtmExp
hi im trying to make a cookie behave like a session so every time i load or reload the page it gives him this line:
Response.Cookies("name").Expires = Now() + 0.015
but its not working..
if i load the page at 10:00 the cookie expires at 10:20
even though i reload the page at 10:10
what can i do? or those a cookie expires can only be set once?
I was wondering if anyone knows how to get the current time of the user's timezone in an asp page. Currently I am trying to do some frequency capping in an advertising system i am working on and i want a cookie to expire at the end of the day, in Pacific Standard time.
What is happening now is the cookie is expiring whenever the day ends on the users computer, but i want it to expire when the day ends in our time zone. Any ideas on hwo to do this?? Is there a function i can call to get the users current time based on their timezone?
For security purposes I would like to know how to disable. The back button in the browser and/or expire the page.
View Replies View RelatedI want to delete all the cookies which are created for the application.If i know the names of a cookies i can delete the cookies or i can set the expire properties.
View Replies View Relatedi want to increase my session time so that it does not expire till the user closes the site.
i have written in global.asa file the following code:
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Session_OnStart
Session.Timeout = -1
End Sub
</script>
but it doesnt work and my sesion still expires.
Using IIS 5.0 and sometime some asp pages (absolutely
randomly) showing as blank white pages. So far only one
way of fixing it - restart whole server. Restarting IIS,
or specific web server not helping, only whole server.
I enable server side and client side debugging, but no
errors showing up...
In view source pages always look like this:
-----------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1251"></HEAD>
<BODY></BODY></HTML>
-----------------------
Any idea why it can happened and how to fix?
I am always getting cached pages even contents of the page changed on the server but I am getting old page (data).How to solve this.
View Replies View Relatedis it possible to create pages using other pages. Here is an example... Can I make a page that has a menu on it, but the menu is actually a seperate page that I call with ASP?
View Replies View RelatedWe run a website with pages that are created using ASP. The website is
used by different people from different networks. For some people, the
pages are stuck. It looks like the were able to open the page, but it
is not displayed on their browser. We think that it might be something
to do with their proxy. Does anybody know how to solve this problem?
I had a 404 page set up in IIS 5.0 that would the the URL of the requested page from the query string. i recently upgraded to IIS 6.0 but it doesn't seem to put the requested URL in the query string as it did in IIS 5.0 and 3.0. Does anyone know how i can get the requested url property in IIS 6?
View Replies View RelatedI have a bout 5 different pages of which each will contain a form requiring users to complete. These forms are all related as one project. It is necessary that if the user was to only complete the first form they could theoretically quit, come back later (time not dependant) and complete the remaining pages. Therefore I think the best way to do this is to write the values to the database upon each click of the next button. The only other issue with this is that the user will also be receiving a pdf file at the end of the full form submission with all their information inserted into this pdf and finalized. Now. I am aware of pdflib in which I need php but my choice was to do this in asp. What are my options here? Should I combine them, should I draw all the info from the db at the very end with php and then create the pdf, should I use sessions during the entire process
View Replies View RelatedWhen asp.net pages are made in vs.net, loading on the
local host displays the labels all in the top left corner
of the screen. Also, all textboxes and image buttons are
not even displayed at all. If pages are made on a remote
server, they load perfetly fine, it is just the local host
displaying them incorrectly. Is this a common problem?? I
have iis 5.0 installed with windows 2000. i use the full
version of vs.net to make asp.net pages.
I have a web site I've recently moved to a new provider.It has
worked for years.On the new provider's servers ( Win2k Server .NET 1.1 )
my asp 3.0 pages often don't completely execute.
Here is what happens: Most of the page starts displaying in the browser,
then you see some HTML, then nothing.
If you refresh a few times, the page finally completely loads. There is
never an error reported during any of this.
I have installed IIS 5 on Windows 2000 Server and have applied all the neccessary updates and patches. I am unable to run any ASP pages on the local server. I am able to view the HTML pages though. I have checked everything but cannot seem to figure it out. I end up getting HTTP 500 for all the web pages.
View Replies View Related