Ask a Question related to ASP Components, Design and Development.
-
Sarevalo #1
Session Variable in IIS 5
Hi, i can't use a Session variable in IIS 5, when i try
to assign a value send to me next erro messages
"Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'Session'
This is in win2k, but in XP work perfect
Can someone help me please???
Sarevalo Guest
-
#39634 [NEW]: session variable and normal variable
From: erhanbaris at gmail dot com Operating system: Win Xp SP1 PHP version: 5.2.0 PHP Bug Type: Variables related Bug... -
Cannot set session variable
I created a simple login script a some time ago which worked like a charm until I recently switched to a new web host that's running ColdFusion MX. ... -
session variable and IE
Hi there, I have a session variable that holds an user name, after user logs in. All works just fine in development environment (Intranet) for IE... -
Datalist - how (if) to use a sub variable or session variable in the footer?
Hi, sorry to be greedy with all my posts lately, but can you tell I'm doing new things this week? I've just done my first datalist (a simple... -
[SESSION] Session variable deleted prior to command?
Hi all, I'm developing a database system on my local computer (OS/version details at bottom) with a simple user authentication using sessions. On... -
Ray at #2
Re: Session Variable in IIS 5
What does your code look like? And is this in <% server side code? %>
Ray at home
"Sarevalo" <sarevalo@hiltonginnmty.com.mx> wrote in message
news:206901c3e0a4$4c355d90$a001280a@phx.gbl...> Hi, i can't use a Session variable in IIS 5, when i try
> to assign a value send to me next erro messages
>
> "Microsoft VBScript runtime (0x800A000D)
> Type mismatch: 'Session'
>
> This is in win2k, but in XP work perfect
>
> Can someone help me please???
Ray at Guest
-
Sarevalo #3
Re: Session Variable in IIS 5
This is my code
<%
set obj=Server.CreateObject("Oracle_Interfase.clsinser ta")
Set rs= obj.Ora_permiso(cstr(usuario),cstr(pass))
if err.number = 0 then
if not rs.eof then
Session("Permiso")= cstr(rs("tpo_permiso"))
Session("CodHotel")= cstr(rs("codhotel"))
Response.Redirect ("hil_captura.asp")
else
mensajeerror = "Incorrect Password"
end if
else
Response.Write("Error")
end if
set rs = nothing
Set obj = nothing
%>side code? %>>-----Original Message-----
>What does your code look like? And is this in <% servermessage>
>Ray at home
>
>"Sarevalo" <sarevalo@hiltonginnmty.com.mx> wrote in>news:206901c3e0a4$4c355d90$a001280a@phx.gbl...>>> Hi, i can't use a Session variable in IIS 5, when i try
>> to assign a value send to me next erro messages
>>
>> "Microsoft VBScript runtime (0x800A000D)
>> Type mismatch: 'Session'
>>
>> This is in win2k, but in XP work perfect
>>
>> Can someone help me please???
>
>.
>Sarevalo Guest
-
Ray at #4
Re: Session Variable in IIS 5
On what line does the error occur and is it possible that your recordset
values are null? Also, it wouldn't hurt to use the item's value, i.e.
Session("Permiso") = CStr(rs.Fields.Item("tpo_permiso").Value)
Session("CodHotel") = CStr(rs.Fields.Item("codhotel").Value)
Ray at home
"Sarevalo" <sarevalo@hiltonginnmty.com.mx> wrote in message
news:231b01c3e0a9$dbf72d50$a501280a@phx.gbl...> This is my code
>
> <%
> set obj=Server.CreateObject("Oracle_Interfase.clsinser ta")
> Set rs= obj.Ora_permiso(cstr(usuario),cstr(pass))
>
> if err.number = 0 then
> if not rs.eof then
> Session("Permiso")= cstr(rs("tpo_permiso"))
> Session("CodHotel")= cstr(rs("codhotel"))
>
> Response.Redirect ("hil_captura.asp")
>
> else
>
> mensajeerror = "Incorrect Password"
>
> end if
>
> else
> Response.Write("Error")
>
> end if
> set rs = nothing
> Set obj = nothing
> %>> side code? %>> >-----Original Message-----
> >What does your code look like? And is this in <% server> message> >
> >Ray at home
> >
> >"Sarevalo" <sarevalo@hiltonginnmty.com.mx> wrote in> >news:206901c3e0a4$4c355d90$a001280a@phx.gbl...> >> >> Hi, i can't use a Session variable in IIS 5, when i try
> >> to assign a value send to me next erro messages
> >>
> >> "Microsoft VBScript runtime (0x800A000D)
> >> Type mismatch: 'Session'
> >>
> >> This is in win2k, but in XP work perfect
> >>
> >> Can someone help me please???
> >
> >.
> >
Ray at Guest



Reply With Quote

