Print Page | Close Window

refresh

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7939
Printed Date: 28 March 2026 at 9:01am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: refresh
Posted By: Boecky
Subject: refresh
Date Posted: 08 December 2003 at 8:20am
I'm looking for how to refresh my page automaticly after I come from another page (response.redirect). I'll tell more details: at my default page I click a link that go to a page to set an id in a cookie to 1 for example. then it redirect back to my default page, but there when I check the value of the cookie, it's not set to 1 but still to what it was before i set the cookie. Once I refresh my page (F5) then it's found the new value in the cookie (1). Now I'm searching how to refresh my page automaticly, only once after i set something to a cookie and not refresh every time when i just browse to that page (not with meta tags) Or is there an other way to solve this problem? Every sugestion is welcome!



Replies:
Posted By: Diep-Vriezer
Date Posted: 08 December 2003 at 8:45am
 A new request should always proces the current settings. But you can insert some code in the <meta> tags, but this works quite annoying.

-------------
Gone..


Posted By: MorningZ
Date Posted: 08 December 2003 at 8:54am

also may just want to add something to the querystring which will absolutely force the first page to redo

so

"pagea.aspx" >> redirect to "pageb.aspx" >> set cookie >> redirect to "pagea.aspx?Login=Good"



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Scotty32
Date Posted: 08 December 2003 at 8:58am

i ummm got lost in there and i have no idea wots goin on really

but couldnt you do say sumfin like:

if cookie = cookie then
     Response.Redirect("default.asp")
end if

umm i saw you said if the cookie was still wot it was set to b4 then refresh, so change that bit.... but thats an idea really



-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: Boecky
Date Posted: 09 December 2003 at 2:26am

Originally posted by Diep-Vriezer Diep-Vriezer wrote:

 A new request should always proces the current settings.


The problem is, after i redirect to the default page, i feel it takes the page out of the cache. And I don't know how to turn it off...i use also a lot of user controls that uses that variable in that cookie...



Posted By: Boecky
Date Posted: 09 December 2003 at 3:20am
I found it out by myself...
I go to the page that set a cookie via an hyperlink and come back with a response to the default page, it displays the new values. Before i just test it via the url in the browser...but that's cache what i see


Posted By: Diep-Vriezer
Date Posted: 09 December 2003 at 9:07am
 You aren't the first to be fooled with IE's cache. You can disable it if you're developing, or just clean it alot.

-------------
Gone..



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net