This is a discussion on "[SOLVED] ASP Session Variable" within the Classic ASP section. This forum, and the thread "[SOLVED] ASP Session Variable are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] ASP Session Variable
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
I know this sounds simple to you guys, but I can't find anywhere in the internet on how to solve this.
Basically, I have a login page.. and a verify.asp page which will set the session variable to the user username:
In the protectedpage.asp page, I want to perform an update statement reffering to the username, something like this:
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|
|
#2
|
|||
|
|||
|
Re: ASP Session Variable
Well.
I manage to solved it here:
'" + Session("name") + "' '" & Session("name") & "' either one will work...
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#3
|
||||
|
||||
|
Re: ASP Session Variable
Can you mark the thread as solved please. Cheers.
__________________
WelshStew If you think I've helped, click the "Thanks" tierney rides tboard - uk site | xtreme wales - extreme clothing WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
|
|
#4
|
|||
|
|||
|
Re: ASP Session Variable
How to do that?
I have been trying to do that since yesterday....
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#5
|
||||
|
||||
|
Re: ASP Session Variable
On my view you open up the thread you started, go to thread tools, and then there should be a option to mark thread as solved.
Stew
__________________
WelshStew If you think I've helped, click the "Thanks" tierney rides tboard - uk site | xtreme wales - extreme clothing WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
|
|
#6
|
|||
|
|||
|
Re: ASP Session Variable
Maybe it's on the new theme. I can't find the option to mark thread as solved?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#7
|
|||
|
|||
|
Re: ASP Session Variable
Strange thing happen!
When I logged on to my page successfully, it will capture the date and time and save it to the database. In the success.asp page (after successfully logged in) I will display the date and time too but when I click the refresh button, the date keeps on updating real time according to the current time. Can that be fixed a date and time value? I am using now() function to capture the date and time and save it to the database. Thanks
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#8
|
|||
|
|||
|
Re: ASP Session Variable
Yeah. I solved it.
Don't create a recordset in the page where you display that time from the database. Don't perform the sql statement in the page where you will display the time.. Quote:
login.asp > verify.asp > success.asp
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing a session variable when clicking a link? | Crow555 | Classic ASP | 0 | May 15th, 2008 12:22 |
| Session variable errors | fogofogo | PHP Forum | 2 | Dec 16th, 2005 12:23 |
| Assign string values to integer values of a session variable | Andy K | Classic ASP | 1 | Jul 13th, 2005 08:29 |
| problem with Session variable | andrew_perez5 | Classic ASP | 0 | Jan 24th, 2005 03:42 |
| session variable | Monie | Classic ASP | 7 | Aug 30th, 2004 03:52 |