header() & session problem...
| From: | Gregor Jaksa | Date: | Sat, 05 May 2001 22:55:07 +0000 |
| Subject: | header() & session problem... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-51571@lists.php.net to get a copy of this message | ||
hello,
let me try to explain my problem..
i have one script in which i set some stuff like sessions and some
cookies...
now i need to call this script from almost every page on my site somehow
like
lets say i'm on page www.url.com/script.php?page=14 and then i call that
other function
Header("Location: /scripts/setvars.php?var1=foo&far2=foo2");
here's now the real problem..what should i put in setvars.php scripts so it
returns to the page i called it from ?
basicly i need to get back to script.php?page=14 ... can anyone help me
if anyone knows any better way i'll be glad to listen
one more thing, i cant use include(setvars.php) couze i need to refresh ...
so i can use cookies right away
and one more question bout sessions..when i set session like
session_register("foo"); do i need to refresh the page before i can use it
like $HTTP_SESSION_VARS["foo"] or can i use it right away ?
(couze first way doesnt work for me( i need to refresh ), maybe i'm doin
something wrong, so i would like some help on this too)
thx in advance