How to stop user to go to middle part of appplication by storing in the favorites.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: How to stop user to go to middle part of appplication by storing in the favorites.

  1. #1
    Vb Guest

    How to stop user to go to middle part of appplication by storing in the favorites.


    Hi All,
    How to stop the user to go into the page from storing the URL in favorites
    from previous login session.

    Thanks in advance

    Vb

  2. #2
    Phil Weber Guest

    Re: How to stop user to go to middle part of appplication by storing in the favorites.

    > How to stop the user to go into the page from storing
    > the URL in favorites from previous login session.


    VB: I would set a session cookie when the user logs in. At the top of each
    page, I would check for the cookie, and if it's not present, redirect the
    user to the login page.
    --
    Phil Weber


  3. #3
    vb Guest

    Re: How to stop user to go to middle part of appplication by storing in the favorites.


    "Phil Weber" <philweber@hotmail.com> wrote:
    > > How to stop the user to go into the page from storing
    > > the URL in favorites from previous login session.

    >
    >VB: I would set a session cookie when the user logs in. At the top of each
    >page, I would check for the cookie, and if it's not present, redirect the
    >user to the login page.
    >--
    >Phil Weber
    >

    Phil Weber:
    Thanks for your time and reply. Could you please send the sample code? What
    if the user browser doesn't support the cookie. Is there any other way to
    do other than cookie? That will be of great help.

    Thanks agian for your help.

    Thanks
    Vb


  4. #4
    js Guest

    Re: How to stop user to go to middle part of appplication by storing in the favorites.


    If the user doesnt support cookies, then use a session

    you would want to include this script at the top of every page that requrires
    the login.

    if session("valid") <> "ok" then
    response.redirect "index.asp"
    end if

    "vb" <mike_mike8@hotmail.com> wrote:
    >
    >"Phil Weber" <philweber@hotmail.com> wrote:
    >> > How to stop the user to go into the page from storing
    >> > the URL in favorites from previous login session.

    >>
    >>VB: I would set a session cookie when the user logs in. At the top of each
    >>page, I would check for the cookie, and if it's not present, redirect the
    >>user to the login page.
    >>--
    >>Phil Weber
    >>

    >Phil Weber:
    >Thanks for your time and reply. Could you please send the sample code? What
    >if the user browser doesn't support the cookie. Is there any other way to
    >do other than cookie? That will be of great help.
    >
    >Thanks agian for your help.
    >
    >Thanks
    >Vb
    >



  5. #5
    Russell Jones Guest

    Re: How to stop user to go to middle part of appplication by storing in the favorites.

    If the client browser doesn't support cookies, you will need to either use a
    URL-encoded generated unique value or a hidden field value to test whether
    the user is logged on. The first method requires that you alter all the
    embedded URLs that link back to your application at run-time to add the
    generated value, called "munging" the URL, so that you'll receive the value
    on the server as a URL parameter; the second method requires that you submit
    the form data and use the POST method with every request subsequent to the
    initial logon--which is essentially what Web Forms do in ASP.NET.


    "js" <js@js.com> wrote in message news:3ebfe62b$1@tnews.web.devx.com...
    >
    > If the user doesnt support cookies, then use a session
    >
    > you would want to include this script at the top of every page that

    requrires
    > the login.
    >
    > if session("valid") <> "ok" then
    > response.redirect "index.asp"
    > end if
    >
    > "vb" <mike_mike8@hotmail.com> wrote:
    > >
    > >"Phil Weber" <philweber@hotmail.com> wrote:
    > >> > How to stop the user to go into the page from storing
    > >> > the URL in favorites from previous login session.
    > >>
    > >>VB: I would set a session cookie when the user logs in. At the top of

    each
    > >>page, I would check for the cookie, and if it's not present, redirect

    the
    > >>user to the login page.
    > >>--
    > >>Phil Weber
    > >>

    > >Phil Weber:
    > >Thanks for your time and reply. Could you please send the sample code?

    What
    > >if the user browser doesn't support the cookie. Is there any other way to
    > >do other than cookie? That will be of great help.
    > >
    > >Thanks agian for your help.
    > >
    > >Thanks
    > >Vb
    > >

    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center