?
Solved

MisMatch error Using Session

Posted on 2003-02-20
6
Medium Priority
?
147 Views
Last Modified: 2010-04-03
I am trying to use session vars to pass the info from an input form ( dumping into SQL DB ) to the resulting 'Thank You' page.

I have used this as an example of getting input vars from my Sign-up page:
LastName=request.Form("LastName")
I add it with the
SQLStmt syntax and dump it into the Db...No Problem

-----Problem Starts------
<% Session("LastName")="VarLastName" %>

It throws this error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'Session'
...Line 497

----Problem-------------

I then use a Response.Redirect "Thank_You.ASP"
and I want to pull the info thru to personalize the page

I've tried this at the top, middle, bottom of the page and can't get it to work.  This error occurs on page load and stops all activity.  I can't get the SUBMIT to work,
Any help appreciated.  


Thanks,

Brad
0
Comment
Question by:sms_toad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 6

Expert Comment

by:henryww
ID: 7989738
have u posted the msg in the wrong area?
... hmmm not sure.
never happen to me b4,
looks like u may have a session timeout
how often does it happen?
u don't have to user session to get the form post even after u insert into dB, u can still use request.from (that if ur insert script and thankyou page in one asp file)

type put these in ur code, to set the timeout to 60min
<% sessionTimeout = 60 %>

hope it helps
cheers
0
 
LVL 5

Expert Comment

by:elhy
ID: 7991952
1). Just curious, why do u want to store the value "VarLastName" to Session("LastName") since your already have the value for request.form("LastName")? I mean why not session("LastName") = request.form("LastName")

2). You may want to post all your code or at least more than what u have above so that we can debug further. Coz the problem might be from other lines and slowly leads to that line.

0
 

Author Comment

by:sms_toad
ID: 8027077
Thank you for your answers.  

It turns out that the mistake was on my part.  I was trying to POST and GET the data & I posted my question to the wrong area.

Sorry,

Brad
0
 
LVL 6

Expert Comment

by:henryww
ID: 8027154
that's ok :)
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 11748647
PAQed, with points refunded (50)

Computer101
E-E Admin
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses
Course of the Month15 days, 9 hours left to enroll

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question