Forums

This topic is locked

login validation

Posted 03 Feb 2006 11:48:05
1
has voted
03 Feb 2006 11:48:05 ron bell posted:
Using DreamweaverMX 2004
With ASP VB

I am trying to create a login page which If login is successful it loads a page = "welcome"
It has a form with two text boxes and a button
txtusername, txtpassword, submit

When using the DW Server Behaviour/User Authentication/Log In User wizard

When I create the welcome page and add a recordset and try to filter it to
the login name entered in login page "txtusername" the recordset fails to get any
record, indeed it produces an error

I understand that a session variable has the scope to be passed from page to page??
I attempted to ajust the code to add txtusername stuff to a session variable
This again results in nothing if I attempt to write it on the welcome page

I have tried doing all this using a form and textboxes but without the 'Log In Wizard'
and I have had success. However this does not get me anywhere because it is not
validation the log in name and password - it just passes values from page to page.

Surely it must be pretty normal thing to do (filter a recordset to one record) so all subsequent
pages are filtered to one user

Summary:
How do I create a login page which validates user name and password then
filters a resulting welcome page so I can display the users details
eg Welcome "Mr Anon"

Any code will do, ASP.NET VB or ASP.VB ?

Thanks

Replies

Replied 04 Feb 2006 07:59:51
04 Feb 2006 07:59:51 Dave Clarke replied:
Assuming you are using the standard MM log-in behaviour then <b>Session("MM_Username"</b> is created when a user logs-in and you can use this to display their username.

ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome.
www.parrotlinks.com
www.reunite.co.uk

Reply to this topic