Another great resource for ASP and all other web dev subjects is http://www.w3schools.com/.
What I would do is store the information you want to show teh user in a database. Tie it to a user id or username. when they login, you can do this?
<%
session("Username") = rs("Username") ' rs is teh recordset from a database or you can use any other way to set it.
session("UserID") = rs("UserID")
%>
Then you create a single page that pulls the information from a database and displays it based on the user.
<%
Userid = Session("UserID")
conn=Connect String
sql = "Select * from userinfotable where userid = '"&userid&"'"
set rs = conn.execute(sql)
If not rs.eof then
on error resume next
while not rs.eof
response.write("here is your info "&rs("column1")&"<br />")
rs.movenext()
wend
end if
%>
Now you have one page that is used by all users, but the info displayed is taylored based on thier userid or username.
PK
Main Topics
Browse All Topics





by: m8rixPosted on 2004-04-27 at 23:15:19ID: 10935925
First of all, read the tutorial on this page http://www.codefixer.com/t utorials/s ession_coo kies.asp, it is very straight forward and easy to follow there.
rname
In addition to that you can set a cookie:
Session("UserAccount")=Use
and query your database with this information.