/    Sign up×
Community /Pin to ProfileBookmark

session in new page

Hi,

I am opening a page from a window by clicking an hyperlink with target=”_blank”. In the new page i am getting all the sessions of the parent window, but i dont need those sessions. i need a new session for that page without affecting the parent page. Is it possible to open a page as a new window without having any sessions of the parent window.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@JDM71488Aug 31.2007 — you can kill the current session and start a new one, but you cannot have two sessions going at once unless.

i suppose you could write your own cookie based session management that would have two identifiers to differentiate between the two "fake" sessions so you could have one main session and another one for the data in the new popup window.
Copy linkTweet thisAlerts:
@hifibeeauthorSep 03.2007 — Is there any other way other than the cookie based session?. I am very concerned on using the cookies for this issue. Any other possible way is welcome.
Copy linkTweet thisAlerts:
@felgallSep 03.2007 — Sessions use either cookies or the search string on the end of the URL to pass the session id between pages. The rest of the data can be stored on the server using whatever method you want simply by overriding the appropriate functions to read and write the session data. If you want data from two separate windows to be tracked separately in the session then make the window name part of the name of the session fields used in that window.
Copy linkTweet thisAlerts:
@hifibeeauthorSep 03.2007 — If you want data from two separate windows to be tracked separately in the session then make the window name part of the name of the session fields used in that window.[/QUOTE].

I am confused with these lines. Do you want me to open the window with a different name assigned to it in window.open.
×

Success!

Help @hifibee spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...