By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,050 Members | 1,283 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,050 IT Pros & Developers. It's quick & easy.

session & browser

P: n/a
>> When I open a second browser window from the first, it uses the same session with first!!!
This is not true. session_id is unique for each combination of browser/url.


I believe this too, but you can see:
1. try http://tassadar.physics.auth.gr/~chameleon/Books/
2. right-click in one menu link and "open in new window".
3. in 2nd browser window click greek flag
4. in 1st browser window click "Programming"
everything in 1st browser window are in greeks!!! (we activate greeks only in 2nd browser window)
I try Mozilla & IE6 too.

In the code, I have this for language:
language is changing with GET (eg index.php?lang=english)
if $lang is not set (GET) try SESSION
if $_SESSION['session_lang'] is not set try COOKIE
if $_COOKIE['cookie_lang'] is not set try language for domain (eg gr=greek it=italian fr=francais default=english)

What is error?

thanks
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"<- Chameleon ->" <ch******@hotmail.NOSPAM.com> a écrit dans le message de
news: bn**********@nic.grnet.gr...
When I open a second browser window from the first, it uses the same
session with first!!! This is not true. session_id is unique for each combination of
browser/url. I believe this too, but you can see:
1. try http://tassadar.physics.auth.gr/~chameleon/Books/
2. right-click in one menu link and "open in new window".
3. in 2nd browser window click greek flag
4. in 1st browser window click "Programming"
everything in 1st browser window are in greeks!!! (we activate greeks only in 2nd browser window) I try Mozilla & IE6 too.

In the code, I have this for language:
language is changing with GET (eg index.php?lang=english)
if $lang is not set (GET) try SESSION
if $_SESSION['session_lang'] is not set try COOKIE
if $_COOKIE['cookie_lang'] is not set try language for domain (eg gr=greek it=italian fr=francais default=english)
What is error?
thanks
Hello,

Where do you store the $lang var ?? in session or cookies ??? if yes, that's
the reason why :)

<<<session_id is unique for each combination of browser/url.>>>>
i don't think so.... that's true if you start 2 different IE .... (StartExecute > iexplore 2 times)

But when you open a new window in IE, it still the same process.... so
session vars are shared between all window included in the IE process.

Regards,
Julien.

Jul 17 '05 #2

P: n/a
> > >> When I open a second browser window from the first, it uses the same
session with first!!!
This is not true. session_id is unique for each combination of
browser/url.
I believe this too, but you can see:
1. try http://tassadar.physics.auth.gr/~chameleon/Books/
2. right-click in one menu link and "open in new window".
3. in 2nd browser window click greek flag
4. in 1st browser window click "Programming"
everything in 1st browser window are in greeks!!! (we activate greeks only

in 2nd browser window)
I try Mozilla & IE6 too.

In the code, I have this for language:
language is changing with GET (eg index.php?lang=english)
if $lang is not set (GET) try SESSION
if $_SESSION['session_lang'] is not set try COOKIE
if $_COOKIE['cookie_lang'] is not set try language for domain (eg

gr=greek it=italian fr=francais default=english)

Where do you store the $lang var ?? in session or cookies ??? if yes, that's
the reason why :)


I store the (GET) $lang in both session & cookies but I check first if exists in session and if yes I dont check cookies. So,
different browsers have different sessions...
If I open twice the browser from the "start menu" in windows, all are great!
The problem appears when I duplicate a browser window with both IE6 and Mozilla
<<<session_id is unique for each combination of browser/url.>>>>
i don't think so.... that's true if you start 2 different IE .... (Start
Execute > iexplore 2 times)

But when you open a new window in IE, it still the same process.... so
session vars are shared between all window included in the IE process.


Yes I saw it but I believe this is wrongful. isn't it?
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.