Results 1 to 3 of 3

Thread: Trying to figure out where the best place to put a redirect would be...

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Trying to figure out where the best place to put a redirect would be...

    I am trying to setup a site so that whenever somebody tries to access a page, it checks a database table to see the status of the company a logged in user belongs to. If that company's account is suspended I need to redirect them to a payment page. I'd take suggestions on where to do this, or a better way to do it.

    Maybe in the master page, or in a global event? Not sure.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  2. #2
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,660

    Re: Trying to figure out where the best place to put a redirect would be...

    I am trying to setup a site so that whenever somebody tries to access a page, it checks a database table to see the status of the company a logged in user belongs to. If that company's account is suspended I need to redirect them to a payment page.
    Wouldn't you do this as the user logs in?

    As long as your using sessions to log users out after a certain amount of inactivity so users don't remain permanently logged in.
    Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you



  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Re: Trying to figure out where the best place to put a redirect would be...

    Well I want them still to be able to log in just not be able to access any page but the payment one. If they try to type in another URL I want it to redirect to the payment page. I just dropped it in my Master Page load, not sure if that is the best way but it works.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

Posting Permissions

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



Click Here to Expand Forum to Full Width