Link to home
Start Free TrialLog in
Avatar of themikecooke
themikecooke

asked on

Redirection to a unique page based on user/pass in ASP

I have a logon set up, but I'm looking to redirect the users to a page that will have info specifically for them.  I have considered storring the page in the database and then getting it once the pass/user are checked.  Also, I'm trying to figure out how to protect these pages.  I've thought of using the session variable to restrict access, but I could use some coding examples on this.  I'm a newbie with ASP, so as much step through as you can give would help.  I place a high value on this and I'm not in the same time crunch I was, but time is somewhat of a factor.
SOLUTION
Avatar of m8rix
m8rix
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of themikecooke
themikecooke

ASKER

PK
   I'm liking your solution.  Basically I have a ppt that I want the user to have access to and to be able to see.  Each presentation is tailored to the user.  I'm going to play with this solution a for another 12 hours before closing the question.  Thanks for the help!
Cool.  Glad I can help.  I think this is a great simple solution.
You can also when they go to the page, have it auto redirect them to teh PPT so it opens without them having to click anything.
> First of all, read the tutorial on this page http://www.codefixer.com/tutorials/session_cookies.asp, it is very straight
> forward and easy to follow there.

> In addition to that you can set a cookie:
>
> Session("UserAccount")=Username
>
> and query your database with this information.

Thanks to PK for following on from my post and demonstrating on how to query your database with the user information I specified.

all you have to do now is store the ppt file name in a database field so when the user's log in has been authenticated you can then retrieve the personalised ppt file.

The best thing about this is that you can display any number of ppt files for each unique user.

Glad we could help.

m8rix
Thank you for the A.  Glad we could help.
Can you give me some coding for how I might display the ppt files.  I would like to have them as pps files so that they simply run.  But, I can pull the location from the database, but how do I open the pps in a new window.  Any suggestions would be greatly appreciated.

Mike