| Author |
Topic Search Topic Options
|
Boecky
Groupie
Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
|
Post Options
Thanks(0)
Quote Reply
Topic: refresh 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!
|
 |
Diep-Vriezer
Senior Member
Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
|
Post Options
Thanks(0)
Quote Reply
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..
|
 |
MorningZ
Senior Member
Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
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 
|
|
|
 |
Boecky
Groupie
Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 December 2003 at 2:26am |
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...
|
 |
Boecky
Groupie
Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
|
Post Options
Thanks(0)
Quote Reply
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 
|
 |
Diep-Vriezer
Senior Member
Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
|
Post Options
Thanks(0)
Quote Reply
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..
|
 |