Forums
This topic is locked
newbie question
Posted 08 Jun 2007 20:57:15
1
has voted
08 Jun 2007 20:57:15 Gary O'Hara posted:
Using DMx2004, mssql 2k, iis 6.0, vbscript, asp pages. I have users logging into my site. I use the session variable to verify they have an account in my SQL database, users table. THen I send them to their account page (dynamic data from SQL table. On the account page, I give them a hyperlink to their pages (4 of them) where they can record their activities for the day, obtain points for each, and get a totalled score at the end. I cannot get each of the subsequent pages to grab that username from the session variable or from the table. I get that EOF or BOF error or I get a blank space where the customized name should be. I want to make sure they get credit for their work on each of the four pages without have to reenter their username on each page. What am i doing wrong here? Replies
Replied 08 Jun 2007 21:17:40
08 Jun 2007 21:17:40 dave blohm replied:
link to the page(s) and a user id? will help if i can. have you tried this in multiple browsers?
- Doc
Progress is made by the discontent.
- Doc
Progress is made by the discontent.
Replied 09 Jun 2007 00:50:11
09 Jun 2007 00:50:11 Gary O'Hara replied:
I am assuming session variables are the way to go with this and yes, I've tried in Netscape with the same result. Maybe I need to read a couple books on this because I am NOT a programmer.
Replied 12 Jun 2007 15:02:06
12 Jun 2007 15:02:06 dave blohm replied:
I'm not (at least I wasn't) a programmer either. Although I use them, one of the problems with session variables is that they are stored on the user's machine as a temporary cookie. If the user has their browser configured to reject cookies then usually the session variable won't be stored. The way I learned to write ASP, JavaScript and what have you is by ripping apart other people's code and the code that Dreamweaver's Server Behaviors write to see how it worked. Like I said, I'll be more than happy to point you in the right direction, but I need to see the code.
- Doc
Progress is made by the discontent.
Edited by - daveblohm on 12 Jun 2007 15:08:27
- Doc
Progress is made by the discontent.
Edited by - daveblohm on 12 Jun 2007 15:08:27