Session Variable in IIS 5

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. #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...
    2. 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. ...
    3. 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...
    4. 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...
    5. [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...
  3. #2

    Default 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

  4. #3

    Default 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
    %>
    >-----Original Message-----
    >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???
    >
    >
    >.
    >
    Sarevalo Guest

  5. #4

    Default 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
    > %>
    > >-----Original Message-----
    > >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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139