Skip to main content
Participant
May 7, 2007
Answered

session variable

  • May 7, 2007
  • 1 reply
  • 275 views
I want to use the contents of a database field as a session, anyone know the best way to do this. We are using ASP, Access 2000

Thanks in advance
This topic has been closed for replies.
Correct answer Newsgroup_User
All you need to do to write a recordset value to a session variable is a
code line like this

<%
session("svName") = recordset.fields.item("fieldname").value
%>


--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"ifrsgroup" <webforumsuser@macromedia.com> wrote in message
news:f1oeho$mt5$1@forums.macromedia.com...
>I want to use the contents of a database field as a session, anyone know
>the best way to do this. We are using ASP, Access 2000
>
> Thanks in advance


1 reply

Newsgroup_UserCorrect answer
Inspiring
May 8, 2007
All you need to do to write a recordset value to a session variable is a
code line like this

<%
session("svName") = recordset.fields.item("fieldname").value
%>


--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"ifrsgroup" <webforumsuser@macromedia.com> wrote in message
news:f1oeho$mt5$1@forums.macromedia.com...
>I want to use the contents of a database field as a session, anyone know
>the best way to do this. We are using ASP, Access 2000
>
> Thanks in advance


ifrsgroupAuthor
Participant
May 9, 2007
Thanks Paul, I appreciate the help