Closing popup kills php session

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ryan

    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
  • Randy Webb

    #2
    Re: Closing popup kills php session

    ryan wrote:[color=blue]
    > 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![/color]

    Stop using popups? But its a PHP issue, not a JS issue.


    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • Andrew Thompson

      #3
      Re: Closing popup kills php session

      On 3 Oct 2004 08:07:53 -0700, ryan wrote:
      [color=blue]
      > I have a php page that uses sessions. The page has a button that opens
      > a popup window.[/color]

      Why a pop-up window?
      [color=blue]
      >..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?[/color]

      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

      Comment

      • ryan

        #4
        Re: Closing popup kills php session

        Andrew Thompson <SeeMySites@www .invalid> wrote in message news:<327dwqgml cr5$.1jg02j1alm m33$.dlg@40tude .net>...[color=blue]
        > On 3 Oct 2004 08:07:53 -0700, ryan wrote:
        >[color=green]
        > > I have a php page that uses sessions. The page has a button that opens
        > > a popup window.[/color]
        >
        > Why a pop-up window?[/color]

        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.
        [color=blue]
        >[color=green]
        > >..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?[/color]
        >
        > 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.[/color]

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

        ~ryan

        Comment

        • Markus Ernst

          #5
          Re: Closing popup kills php session

          ryan wrote:
          [...][color=blue][color=green]
          >> Why a pop-up window?[/color]
          >
          > 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.[/color]
          [...]

          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


          Comment

          Working...