Sessions

N

Nevena

This is probably really simple question for someone with some ASP experience.

I have created a file
SetSessions.inc

And this is the body of the file

<%
'Set session objects

Function SetRefBy()
dim rs
if Session("RefBy").value="" then
session("RefBY")="<OPTION>Test Sessions</OPTION>"
End if
SetRefBy=Session("RefBy").value
End function

%>

Every time when I call function SetRefBy I receive the message
Microsoft VBScript runtime (0x800A01A8)
Object required: 'Session(...)'
/Include/SetSessions.inc, line 8

Any ideas, it has to be trivial, but not for me:)???

Thanks!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top