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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nirzara
Forum Newbie
Posts: 5
Joined: Mon Nov 05, 2007 7:18 pm

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

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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
nirzara
Forum Newbie
Posts: 5
Joined: Mon Nov 05, 2007 7:18 pm

determine number of window where the same sesion is running?

Post 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
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

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

Post 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.
Post Reply