Re: restricting direct access to popup form--advice needed

From: Xenophobe (xenophobe_at_planetx.com)
Date: 08/03/04


Date: Tue, 03 Aug 2004 15:08:53 GMT

Why? Because the new popup window is treated as a new session. If you know
of a way to retrieve session values from another window please advise.

"R. Rajesh Jeba Anbiah" <ng4rrjanbiah@rediffmail.com> wrote in message
news:cengnn$skd@odbk17.prod.google.com...
> Xenophobe wrote:
> > I have a popup window (required by the client) containing a form and
> would
> > like to prevent users from accessing it directly. They are instead
> required
> > to access the page via a hyperlink on another page. HTTP_REFERER,
> while not
> > completely reliable, would serve the purpose except for another
> problem. The
> > hyperlink points to a JavaScript function which opens the popup. This
> yields
> > HTTP_REFERER worthless.
>
> JavaScript: Fiddle with window.parent object
> PHP: Use session
>
> > My other thought was to create a session_id and pass
> > it to the popup. However this session_id would not be valid in the
> new popup
> > window.
>
> Why??
>
> Also, please look at the archives and read the recent thread titled
> "How to redirect based on $_SERVER["HTTP_REFERER"]?"
> --
> | Just another PHP saint |
> Email: rrjanbiah-at-Y!com
>



Relevant Pages

  • Re: PHP Session in new window
    ... I think you can't do things with the session because you are switching ... between https and http... ... it's possible to just use the same session in the opener window and the ... popup window. ...
    (alt.php)
  • Re: Why popup window will be re-opened again after closing it?
    ... > This is a common problem with popup windows... ... > of a new window instance. ... >> I would like to pass the textbox.text to the javascript function when I ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Session not passed to AxWebBrowser popup
    ... It doesn't seem to be in Navigate events. ... >> some of these call window.open to display popup pages. ... >> the popup doesn't see the browser session from the parent in the ... it opens a new window within the same ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Session not passed to AxWebBrowser popup
    ... Pooran Prasad ... some of these call window.open to display popup pages. ... the popup doesn't see the browser session from the parent in the ... it opens a new window within the same ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • open new window with one click
    ... I need to set a session variable and open a new window with a single click ... sets the session and the other opens the window... ...
    (microsoft.public.dotnet.framework.aspnet)