473,394 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

session & browser

>> 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
2 3917

"<- 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
> > >> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: | last post by:
I ask something relative later but the answer make me cry ;-) If we duplicate the browser window (both in IE / Mozilla), both of 2 browser windows use the same session!!! This produces many...
14
by: windandwaves | last post by:
Hi Folk Forgive me for asking such a basic question... I have a site where I want to track the user from start till end... To do this, I have setup the following structure for each page,...
1
by: - Steve - | last post by:
I use forms based authentication and I've been putting the username in Session State (Session). Then when a user posts I check that Session != null else I Session.Abandon() and...
5
by: Raghu Raman | last post by:
HI, am using a simple project in asp.net using c#. if i put the break point in the application start & session start event , they are firing good .BUT WHEN i close my project while running on...
10
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
10
by: Steve Cook | last post by:
Hi, I have an upload application written in PHP and Flash. The PHP page gets the file information via $_POST. Moreover, the user never actually visits the PHP page, rather Flash sends the...
2
by: Gordon Burditt | last post by:
I had this idea about preventing session fixation, and I'm wondering what anyone else thinks about it. The idea is, essentially, don't allow session ids that YOUR PHP didn't generate (and aren't...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.