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

Closing popup kills php session

P: n/a
Hello and sorry for the crosspost,

I have a php page that uses sessions. The page has a button that opens
a popup window. The popup window is itself a php page and also uses
the session. When I close the popup, I lose the session. Is there
anyway I can prevent the session from being dropped? Thanks!

~ryan
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
ryan wrote:
Hello and sorry for the crosspost,

I have a php page that uses sessions. The page has a button that opens
a popup window. The popup window is itself a php page and also uses
the session. When I close the popup, I lose the session. Is there
anyway I can prevent the session from being dropped? Thanks!


Stop using popups? But its a PHP issue, not a JS issue.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 17 '05 #2

P: n/a
On 3 Oct 2004 08:07:53 -0700, ryan wrote:
I have a php page that uses sessions. The page has a button that opens
a popup window.
Why a pop-up window?
..The popup window is itself a php page and also uses
the session. When I close the popup, I lose the session. Is there
anyway I can prevent the session from being dropped?


The natural thing to suggest is 'make your web-app
linear and dump the pop-up'.

As an aside, I suspect that c.l.php is the more appropriate
group for this*, but I will leave the cross-post as it is for
this reply.

* If your web-app cannot degrade gracefully to pure HTML,
it is either very unusual, or very broken.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
Jul 17 '05 #3

P: n/a
Andrew Thompson <Se********@www.invalid> wrote in message news:<32******************************@40tude.net> ...
On 3 Oct 2004 08:07:53 -0700, ryan wrote:
I have a php page that uses sessions. The page has a button that opens
a popup window.
Why a pop-up window?


This is for an intranet app, and the popup is to provide a printable
version of the content in the main window without the menu and page
header/footer. I think a popup is a more reasonable way to do this
than sending someone to a page with no nav.
..The popup window is itself a php page and also uses
the session. When I close the popup, I lose the session. Is there
anyway I can prevent the session from being dropped?


The natural thing to suggest is 'make your web-app
linear and dump the pop-up'.

As an aside, I suspect that c.l.php is the more appropriate
group for this*, but I will leave the cross-post as it is for
this reply.

* If your web-app cannot degrade gracefully to pure HTML,
it is either very unusual, or very broken.


What do you mean by this? Thanks very much for your reply, by the way.

~ryan
Jul 17 '05 #4

P: n/a
ryan wrote:
[...]
Why a pop-up window?


This is for an intranet app, and the popup is to provide a printable
version of the content in the main window without the menu and page
header/footer. I think a popup is a more reasonable way to do this
than sending someone to a page with no nav.

[...]

Write a separate CSS for media="print", and you are done without any popup
troubles, and without maintaining 2 separate versions of the page.

--
Markus
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.