473,804 Members | 4,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 17 '05 #1
4 2554
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.javas cript FAQ - http://jibbering.com/faq
Jul 17 '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 17 '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 17 '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 17 '05 #5

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

Similar topics

1
2462
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 image and a caption (each contained on a separate htm document). I do this with a function in the header script as follows: var picpage=" "; var params=" ";
4
1191
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 close the popup, I lose the session. Is there anyway I can prevent the session from being dropped? Thanks! ~ryan
13
6268
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 to opening up a popup window in an application I wrote. The error messages are quite diverse: "Object doesn't support this property or method" or "Unspecified error." or "The callee (server ) is not available and disappeared; all connections are...
2
6167
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 which is loosely based on the e-commerce example in the quickstarts tutorial. In the cart display I have provided functionality so that when a user clicks on a product name a popup is opened with the full product details displayed.
0
435
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 event private void itmCmd(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { string itemGFNo = ""; if (e.CommandName == "EditTask")
1
11591
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 http://weblogs.asp.net/asmith/archive/2003/09/15/27684.aspx but it was far more complex then I needed. (I got lost trying to figure it all out). Therefore, here goes my simple "web dialog box with parent event handler fireing" solution. ...
1
1188
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 through all the instances of this application and kills the one instance that is not itself and then shuts itself down. The idea is that in a batch file , I could run <applicationname> shutdown which would create a new instance of the...
2
3589
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 to LinkButton_search_Click() so that the code in there runs before opening the popup window? The problem is that I fill a Session variable when I click on the button that will then be used in the Page_Load of my Popup window. So basically this is...
2
1804
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 out. The count down timer on popup will start with 120 and will be count down to 0 and if the user doesn't click on the Continue button (which is on popup), application logs out and the web page will be shown with login page. If the user clicks...
0
9710
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10329
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7626
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3000
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.