Default User Login Page

R

rhynos77

Hi there

As per the script provided in article:
http://support.microsoft.com/kb/825498 certain .asp pages in my sub web are
password protected.

When a user attempts to open any of these pages, they are redirected to the
logon.asp page. When they successfully logon they are redirected to the
referring page (the page they were attempting to access originally).

I have a link to 'Your Profile' (protected). The user is referred to the
logon page, upon successfully logging in they a redirected to Your Profile.

I can't work out how to display the user's personal information on that page
- the database simply says 'No records found'.

Hoping someone can explain how to default this to display the user's
personal information.

Thanks

Ryan
 
S

Stefan B Rusynko

Are you saving their user ID upon login as a session variable, and using it to select their recordset from the db to display
- if so, show us a code snippet of your DB select statement and variables
--




| Hi there
|
| As per the script provided in article:
| http://support.microsoft.com/kb/825498 certain .asp pages in my sub web are
| password protected.
|
| When a user attempts to open any of these pages, they are redirected to the
| logon.asp page. When they successfully logon they are redirected to the
| referring page (the page they were attempting to access originally).
|
| I have a link to 'Your Profile' (protected). The user is referred to the
| logon page, upon successfully logging in they a redirected to Your Profile.
|
| I can't work out how to display the user's personal information on that page
| - the database simply says 'No records found'.
|
| Hoping someone can explain how to default this to display the user's
| personal information.
|
| Thanks
|
| Ryan
 
R

rhynos77

Hi Stefan

In the DB Results Wizard I go to More Options>Defaults. The Name is "UID"
and in the Default Value Field I've entered "<% = session("UID") %>"

This creates this line in the code: fp_sDefault="UID=<% = session("UID") %>"

The funny thing is, I've created another form on a separate protected .asp
page, which posts to the profile.asp page. It has a hidden field named "UID"
and
the value is "<% = session("UID") %>".

One other thing - I'd ideally like the profile.asp page to run this query
automatically, but using both "UID" and "PWD" (userID and passwords) but I
can't work this out either.

Thanks in advance for your time.

Ryan

When you click on this, it runs the query on the profile.asp page, no problem.
 
S

Stefan B Rusynko

You may find these links useful
http://www.frontpagehowto.com/newpassword/default.asp
and http://spiderwebwoman.com/thingumajig/tweaks.htm#passing

--




| Hi Stefan
|
| In the DB Results Wizard I go to More Options>Defaults. The Name is "UID"
| and in the Default Value Field I've entered "<% = session("UID") %>"
|
| This creates this line in the code: fp_sDefault="UID=<% = session("UID") %>"
|
| The funny thing is, I've created another form on a separate protected .asp
| page, which posts to the profile.asp page. It has a hidden field named "UID"
| and
| the value is "<% = session("UID") %>".
|
| One other thing - I'd ideally like the profile.asp page to run this query
| automatically, but using both "UID" and "PWD" (userID and passwords) but I
| can't work this out either.
|
| Thanks in advance for your time.
|
| Ryan
|
| When you click on this, it runs the query on the profile.asp page, no problem.
| "Stefan B Rusynko" wrote:
|
| > Are you saving their user ID upon login as a session variable, and using it to select their recordset from the db to display.
|
|
| > - if so, show us a code snippet of your DB select statement and variables
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | Hi there
| > |
| > | As per the script provided in article:
| > | http://support.microsoft.com/kb/825498 certain .asp pages in my sub web are
| > | password protected.
| > |
| > | When a user attempts to open any of these pages, they are redirected to the
| > | logon.asp page. When they successfully logon they are redirected to the
| > | referring page (the page they were attempting to access originally).
| > |
| > | I have a link to 'Your Profile' (protected). The user is referred to the
| > | logon page, upon successfully logging in they a redirected to Your Profile.
| > |
| > | I can't work out how to display the user's personal information on that page
| > | - the database simply says 'No records found'.
| > |
| > | Hoping someone can explain how to default this to display the user's
| > | personal information.
| > |
| > | Thanks
| > |
| > | Ryan
| >
| >
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top