> I *think* that I've gotten this to work like I want it. It seems to
> randomly crap out and start displaying the previous station var from
> time to time, but at last test appeared to be stable:
>
> session_start();
> if ((is_array($_GET)) && isset($_GET['station'])) {
> $statvar = $_GET['station'];
> if (isset($_SESSION['station'])) {
> $_SESSION['station'] == '';
> }
> $_SESSION['station'] = $statvar;
> $station = $_SESSION['station'];
> } else {
> $station = $_SESSION['station'];
> }
Randomly as in "sometimes with IE"? You may want to add a header() statement
to specify the Cache-Control to discourage IE from offering cached pages.
header("Cache-control: no-cache");
There are other possible values which may work better for you.
James
_____
James D. Keeline
http://www.Keeline.com http://www.Keeline.com/articles
http://Stratemeyer.org http://www.Keeline.com/TSCollection
http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Spring Semester Begins Jan 31 -- New Classes Start Every Few Weeks.
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/