Professional Web Applications Themes

Session Variable in IIS 5 - ASP Components

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???...

  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. #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" <sarevalohiltonginnmty.com.mx> wrote in message
    news:206901c3e0a4$4c355d90$a001280aphx.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

  3. #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" <sarevalohiltonginnmty.com.mx> wrote in
    message
    >news:206901c3e0a4$4c355d90$a001280aphx.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

  4. #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" <sarevalohiltonginnmty.com.mx> wrote in message
    news:231b01c3e0a9$dbf72d50$a501280aphx.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" <sarevalohiltonginnmty.com.mx> wrote in
    > message
    > >news:206901c3e0a4$4c355d90$a001280aphx.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

Similar Threads

  1. #39634 [NEW]: session variable and normal variable
    By erhanbaris at gmail dot com in forum PHP Bugs
    Replies: 3
    Last Post: November 27th, 10:09 AM
  2. Session Variable
    By Gmmi in forum ASP
    Replies: 13
    Last Post: March 4th, 02:53 AM
  3. Replies: 1
    Last Post: July 17th, 01:35 AM
  4. [SESSION] Session variable deleted prior to command?
    By Ivo Fokkema in forum PHP Development
    Replies: 0
    Last Post: July 16th, 12:59 PM
  5. Session Variable help please
    By stewboy webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: July 16th, 01:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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