Professional Web Applications Themes

How to find the current page? - PERL Beginners

Hi all, I designed a website, having restricted and unrestricted zones. What I'm trying to do is to redirect a user after he/she logs in, to the page where he was (i.e.: if the user was in the product's X description and he/she wants to buy it, after he/she logs in he has to be redirected to the same page). Any ideas about how can I do that? I tried to find the current page and after login to redirect the user to that page, but no success. Thanks, CO...

  1. #1

    Default How to find the current page?

    Hi all,



    I designed a website, having restricted and unrestricted zones.

    What I'm trying to do is to redirect a user after he/she logs in, to the
    page where he was (i.e.: if the user was in the product's X description and
    he/she wants to buy it, after he/she logs in he has to be redirected to the
    same page).



    Any ideas about how can I do that?



    I tried to find the current page and after login to redirect the user to
    that page, but no success.



    Thanks,



    CO


    Cristi Guest

  2. #2

    Default Re: How to find the current page?

    On Tue, 12 Oct 2004, Cristi Ocolisan wrote:
     

    If you want to send the user one page back, $ENV{'HTTP_REFERER'} should
    have the right page, but this isn't always reliable. It isn't hard, for
    example, to configure a browser not to transmit this data.

    You'd probably be better off embedding an identifier for the page the
    user was visiting as a hidden form field that is carried forward with
    the login process, &/or stashed in a cookie. Once the user has logged
    in, then send them to the page that the hidden / cookie variable says
    they were looking at previously.


    --
    Chris Devers
    Chris Guest

  3. #3

    Default RE: How to find the current page?

    Chris Devers <com> wrote:

    : You'd probably be better off embedding an identifier for the
    : page the user was visiting as a hidden form field that is
    : carried forward with the login process, &/or stashed in a
    : cookie. Once the user has logged in, then send them to the page
    : that the hidden / cookie variable says they were looking at
    : previously.


    Be certain to include logic that does not allow
    redirection to return to the logout page. On computers
    with more than one user, this gets really annoying.


    HTH,

    Charles K. Clarkson
    --
    Mobile Homes Specialist
    254 968-8328

    Charles Guest

Similar Threads

  1. Using DW find to find tags not on page
    By ian@uaa in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: August 9th, 05:13 PM
  2. Refferring page and current page?
    By Michelle in forum PHP Development
    Replies: 3
    Last Post: February 12th, 01:31 AM
  3. how to find the current tty?
    By Andrej Hocevar in forum UNIX Programming
    Replies: 10
    Last Post: August 8th, 04:16 PM
  4. Get the name of the current page
    By IntraRELY in forum ASP.NET General
    Replies: 1
    Last Post: July 30th, 11:01 PM
  5. Replies: 0
    Last Post: July 19th, 06:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139