Page 1 of 1

how i will determine the window number in php which is open?

Posted: Mon Nov 05, 2007 7:51 pm
by nirzara
hi,

How i will determine the browser number which is curently open in php ?
If a user want to see the different image in different browser or new window in same browser then i want to save the viewed images in the database which is shown in current window? Here image will be same or not in different window, but next time when user want to see the vied image then user can see the images depend on browser which he saw prevous in one window, so image will be shown depend on window based.

IS it possible in php to see the previously displayed image which is shown in different window? If i can determine the window number which is current opend then i can solve this problem?

Is it possible to determine the window or tab number in php? IS there anyone whoc can help me about this? Pleasse help me. Ineed this urgent.

with regards

Nirzara

Posted: Mon Nov 05, 2007 8:08 pm
by feyd
I can't understand what you are asking.

Just so you know, urgency doesn't make a thread or problem any more important here.

Posted: Mon Nov 05, 2007 8:42 pm
by Kieran Huggins
If you open the window with javascript, you can give that window a name. You can pass that name in your GET string.

Google "window.open" for examples/tutorials

determine number of window where the same sesion is running?

Posted: Mon Nov 05, 2007 11:19 pm
by nirzara
hi,

Actually, i need to know, in how many window the same session is running? for example, Now i am login as user in index.php page, when i open this page in new browser window or tab, then the same session of that login user is running, now i want to know the number of window where the same session is running?

IS it possible in php? Is there asnyone who can help me? Please help me.

With regards
Nirzara

Posted: Mon Nov 05, 2007 11:27 pm
by Kieran Huggins
you could use ajax to ping the server from each open window, giving each page a unique ID.

Be warned: this smells of poor design.

Re: determine number of window where the same sesion is runn

Posted: Tue Nov 06, 2007 3:11 pm
by RobertGonzalez
nirzara wrote:hi,

Actually, i need to know, in how many window the same session is running? for example, Now i am login as user in index.php page, when i open this page in new browser window or tab, then the same session of that login user is running, now i want to know the number of window where the same session is running?

IS it possible in php? Is there asnyone who can help me? Please help me.

With regards
Nirzara
Please do not double post.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:3. Do not make multiple, identical posts. This is viewed as spam and will be deleted.