iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > Classic ASP

Reply
 
LinkBack Thread Tools
Old June 14th, 2005, 07:56 PM   #1
Highly Reputable Member
 

Join Date: May 2005
Location: U.K
Age: 22
Posts: 728
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 benbramz will become famous soon enough
return from db

hi

i have set up a page which uses a session ID. (username under the db) How do i write asp code to get the session and then select all the details in that record for use in hidden email fields.

cheers
benbramz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 15th, 2005, 09:35 AM   #2
WebForumz Member
 

Join Date: Feb 2004
Location: Woodbridge, UK
Age: 28
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Trebz is on a distinguished road
Hi

Could you please explain a bit more. Where is the Session ID coming from?

How does the session ID relate to the persons details in the database? Are you saying that you are generating your own session ID's and have your own state management tool?

Or are you saying that a person logs in, and you store their username or some other PK in the session object, and from that you need to get their details from the database?
Trebz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 15th, 2005, 04:37 PM   #3
Highly Reputable Member
 

Join Date: May 2005
Location: U.K
Age: 22
Posts: 728
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 benbramz will become famous soon enough
hi

sorry i wasnt very clear was i

it twas the latter, i didnt know there was other session types in asp

sombody logs in - the session is the username in the db, but i have a link to another page. what i want is the session id to be checked with the records in the db so i can have them as values in hidden form fields.

hope that clarified it

thanks
benbramz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 18th, 2005, 12:17 PM   #4
New Member
 

Join Date: Jun 2005
Location: USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 HostBreak is on a distinguished road
I haven’t got it clearly make it clear may be I can help!
HostBreak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 18th, 2005, 05:44 PM   #5
Highly Reputable Member
 

Join Date: May 2005
Location: U.K
Age: 22
Posts: 728
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 benbramz will become famous soon enough
sorry - again!

ok - i have a login page. user logs in (details in db)and a session is created (username)

i have a link to another page

here i want to check the session name and then get the details for that username from the db such as full name, email address etc

i wana use these details in hidden fields (not important but i added it)

hope thts simple enogh
thanks
benbramz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 19th, 2005, 03:29 PM   #6
Highly Reputable Member
 

Join Date: May 2005
Location: U.K
Age: 22
Posts: 728
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 benbramz will become famous soon enough
ive sorted it out now anyway
benbramz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
return


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Return column names in SQL using PHP nate2099 Databases 7 December 21st, 2007 11:57 AM
The Return of Basic HTML??? ScottR The Café 0 August 8th, 2007 10:38 AM
'Return to top' trouble? Kymberly PHP 3 August 3rd, 2006 12:49 PM
ASP ADO Connection to return XML from SQL Proc NickyJ Classic ASP 2 August 11th, 2005 08:39 AM
Return to previously viewed screen Imara96 Flash and ActionScript 5 April 23rd, 2005 07:18 PM


Search Engine Optimization by vBSEO 3.2.0 RC8