Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - refresh
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

refresh

 Post Reply Post Reply
Author
Boecky View Drop Down
Groupie
Groupie
Avatar

Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boecky Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post 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..
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post 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 - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
Boecky View Drop Down
Groupie
Groupie
Avatar

Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boecky Quote  Post ReplyReply Direct Link To This Post 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...

Back to Top
Boecky View Drop Down
Groupie
Groupie
Avatar

Joined: 23 December 2002
Location: Belgium
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boecky Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post 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..
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.