Ask a Question related to Dreamweaver AppDev, Design and Development.
-
mr merky #1
Multiple User login in ASP
Hi I have set up a site that contains a login area. It works fine and I can
add multiple users. The problem I have got is that each user will be sent to
the same page (client.asp), how can I change it so that each user is sent to
their own page. I have attached the code I'm using. Any help would be much
appreciated!
<%
Set conn = server.createobject("adodb.connection")
DSNtemp = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Server.Mappath("../../private/login.mdb")
conn.Open DSNtemp
If InStr(Request.Form("uid"),"'") Then
uid = Replace(Request.Form("uid"),"'"," ")
Else
uid = Request.Form("uid")
End If
If InStr(Request.Form("pwd"),"'") Then
pwd = Replace(Request.Form("pwd"),"'"," ")
Else
pwd = Request.Form("pwd")
End If
SQL = "Select * From users Where uid = '" & uid & "' And pwd = '" & pwd & "'"
Set RS = Conn.Execute(SQL)
If Not RS.EOF Then
Session("okeydokey") = True
Set RS = Nothing
Conn.Close
Response.Redirect "client.asp"
Else
Set RS = Nothing
Conn.Close
Response.Redirect "login.asp"
End If
%>
mr merky Guest
-
Login User from Novell Login
Hi, At present a user loggin onto our netwok enters their username and password by a Novell Login prompt. When they fire up their browser they... -
user and admin login on same login page
Hello, I have a user login page which also doubles as my administrator login. Currently, my method of logging in doesnt seem to be working... -
Multiple User Login on different PC's
Hi all, Ive recently implemented a fully working login functionality on a project im working on, however, im struggling to come up with the code... -
Domain Login - One User Can/Another User Cannot from same Win XP computer
Okay ... I'm confused. I installed a brand new computer and everything was working fine. I was then advised who would be getting the computer,... -
User changing something on a form makes asp.net take user to login page
Hi, I have an application that displays the database table records on the web page, the user can navigate thru the contents and make changes and... -
Paul Whitham TMM #2
Re: Multiple User login in ASP
If by their own page you are meaning that their own details will be shown,
then simply change client.asp so that it filters based on the passed session
variable and only displays that information.
--
Regards
Paul Whitham
Macromedia Certified Professional for Dreamweaver MX2004
Valleybiz Internet Design
[url]www.valleybiz.net[/url]
Team Macromedia Volunteer for Ultradev/Dreamweaver MX
[url]www.macromedia.com/support/forums/team_macromedia[/url]
"mr merky" <webforumsuser@macromedia.com> wrote in message
news:d2otvl$fkq$1@forums.macromedia.com...can> Hi I have set up a site that contains a login area. It works fine and Isent to> add multiple users. The problem I have got is that each user will beto> the same page (client.asp), how can I change it so that each user is sentmuch> their own page. I have attached the code I'm using. Any help would be"'"> appreciated!
>
> <%
> Set conn = server.createobject("adodb.connection")
> DSNtemp = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
> Server.Mappath("../../private/login.mdb")
> conn.Open DSNtemp
>
> If InStr(Request.Form("uid"),"'") Then
> uid = Replace(Request.Form("uid"),"'"," ")
> Else
> uid = Request.Form("uid")
> End If
> If InStr(Request.Form("pwd"),"'") Then
> pwd = Replace(Request.Form("pwd"),"'"," ")
> Else
> pwd = Request.Form("pwd")
> End If
>
> SQL = "Select * From users Where uid = '" & uid & "' And pwd = '" & pwd &> Set RS = Conn.Execute(SQL)
>
> If Not RS.EOF Then
> Session("okeydokey") = True
>
> Set RS = Nothing
> Conn.Close
>
> Response.Redirect "client.asp"
> Else
>
> Set RS = Nothing
> Conn.Close
> Response.Redirect "login.asp"
>
> End If
> %>
>
Paul Whitham TMM Guest



Reply With Quote

