Justin French propably said:
> In order to set and then check a cookie, you need to go through a
> page... so you'd have to set something in the URL like ?cookieset=1
> anyway, in order to knwo you had set it, in order to check it.
>
> In other words, you'll need some guff in the URL, in order f
In order to set and then check a cookie, you need to go through a page... so
you'd have to set something in the URL like ?cookieset=1 anyway, in order to
knwo you had set it, in order to check it.
In other words, you'll need some guff in the URL, in order for it to all
work, so why not let it be
Justin French propably said:
> You'd loose session for those without cookies. The work around for
> this would be to hard-code the session ID to all URLs across your
> site for all pages you wish to carry a session through -- a real pain.
Indeed.
> It HAS TO use a session ID from the first pag
On Tue, 1 Oct 2002 12:06:04 +0200, Daniel Alsn wrote:
>To reply to myself .)
>
>I disabled trans_sid on the actual site by using:
>
>ini_set('session.use_trans_sid',false);
>session_start();
>
>But i still want to know what trans_sid does for me. What am i missing out
>on when not using it?
>
>-
on 01/10/02 7:45 PM, Daniel Alsén ([EMAIL PROTECTED]) wrote:
> John W. Holmes propably said:
>
>> Do you have a session_start() on the page? It looks like you have a
>> trans_sid enabled. PHP will add that to all of your URLs
>> automatically. Can you disable it in php.ini?
>
> Yes trans_sid is
To reply to myself .)
I disabled trans_sid on the actual site by using:
ini_set('session.use_trans_sid',false);
session_start();
But i still want to know what trans_sid does for me. What am i missing out
on when not using it?
- D, loves google
--
PHP General Mailing List (http://www.php.n
John W. Holmes propably said:
> Do you have a session_start() on the page? It looks like you have a
> trans_sid enabled. PHP will add that to all of your URLs
> automatically. Can you disable it in php.ini?
Yes trans_sid is enabled and i have a session_start on the page. What is
trans_sid doing
> Another thing - the first time the page is loaded every link on the
page
> gets a '?PHPSESSID=...etc...' attached to itself. But only the first
time.
> It dissapears after the first click i make.
Do you have a session_start() on the page? It looks like you have a
trans_sid enabled. PHP will add
Thanks guys! That did the trick. Time to study these sessions a bit more
thourough it seems :)
Another thing - the first time the page is loaded every link on the page
gets a '?PHPSESSID=...etc...' attached to itself. But only the first time.
It dissapears after the first click i make.
I've neve
Your session variable overwrites the get variable, use $newlang
session_start();
session_register("lang");
if(isset($newlang) $lang=$newlang; // check here for valid values
if (!isset($lang)) { $lang = 'se'; }
Daniel Alsén wrote:
>John W. Holmes propably said:
>
>
>
>>Is register globals on
John W. Holmes propably said:
> Is register globals on or off?
On.
Now - without doing anything - i managed to change the value of $lang to
'en' with a link (pagesname.php?lang=en). But i can't change it back with
?lang=se. Should i get someting to eat to get my brain working?
- D
--
PHP
11 matches
Mail list logo