Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a session variable -- please help

Status
Not open for further replies.

link9

Programmer
Nov 28, 2000
3,387
US
I need to set a session variable to hold some information. I do not wish to use cookies.

Here is my code...
Code:
dim intRegion(4)
call setIntRegion(intRegion)
set Session("intRegion").value = intRegion
And the error message:
Code:
Microsoft VBScript runtime error '800a01a8' 
Object required: 'Session(...)'
Obviously, I have never done this before, so I'm hoping that someone will post a little example that would work where I could later access it through the following code:
Code:
dim intRegion(4)
if isobject(session("intRegion")) then
	set intRegion = session("intRegion")
end if
Any help would be greatly appreciated! Thanks!

Paul Prewett
 
To set a session variable you set it like this:

dim intRegion(4)
call setIntRegion(intRegion)

Session("intRegion")= intRegion

You were very close.... Hope this helps.

Frandazzo

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top