473,386 Members | 1,820 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,386 software developers and data experts.

Closing popup kills php session

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 23 '05 #1
4 1164
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 23 '05 #2
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 23 '05 #3
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 23 '05 #4
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 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ryan | last post by:
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...
1
by: MJEASSOC | last post by:
I need some help with closing a popup window. I'm making an online portfolio, that has one base page with text and thumbnails. When a user clicks on a thumb, a new window opens containing a larger...
13
by: ldan | last post by:
Hi everybody, I would not consider myself an expert in javascript - but so far whatever I know, helped me reaching my goals. Recently I started to experience a lot of javascript errors related...
2
by: Joe Molloy | last post by:
Hi, This isn't a mission critical question but I thought I'dl throw it out there for your feedback as it's a bit curious. I have developed a shopping cart for an application I'm working on...
0
by: ChrisB | last post by:
I'm attempting to open a new window from a LinkButton in a DataGrid. I can set a session variable in the ItemCommand event for the LinkButton like so: // this is used to handle the ItemCommand...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
1
by: Support | last post by:
Hello: I have an application that I wish to update upon login via login script but since the application is in the start-up menu, I cannot override the exe, so, I wrote a function that iterates...
2
by: VMI | last post by:
I have a LinkButton_search on my Page1.aspx that opens up a popup page called popup.aspx. I do this with LinkButton.Attributes.Add() on the Page_Load of Page1.aspx. How can I add server-side code...
2
by: =?Utf-8?B?U3VyZXNoIFJlZGR5?= | last post by:
I am getting a strange problem with IE7 tabs. The web application I am working (developed in ASP.Net, .Net 2.0), will show a popup message with the count down timer 2 minutes before session time...
4
by: goscottie | last post by:
I used submodal as my popup window. With some tweaks, it working great in my app. However, I can't find a way to detect session timeout in the popup window. The app is a form based...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.