CDO and sessions

T

Travis Pupkin

Hi,

I had a contact form set up using CDONTS.NewMail and it worked fine for
about two years. I just went in and changed the object to CDO.Message,
and adjusted a few of the properties, and while the e-mailing portion of
the code still works, none of the session variables on the page work any
longer.

I had both the form validation and the message on the "thank you" page
set using sessions from the page with the CDO code, but for some reason
using CDO cancels the sessions so that Thank You page is blank and the
form validation no longer announces which fields need to be completed.

Any ideas to get around that?

Thanks.
 
A

Aaron Bertrand [MVP]

I had both the form validation and the message on the "thank you" page >
set using sessions from the page with the CDO code, but for some reason
using CDO cancels the sessions so that Thank You page is blank and the
form validation no longer announces which fields need to be completed.

Any ideas to get around that?

I am betting that if you change the code back to CDONTS.NewMail, you'd still
have the problem. Have you tried that?

CDO has nothing to do with sessions.

See http://www.aspfaq.com/2157 for every cause of disappearing sessions I've
ever observed.
 

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
474,147
Messages
2,570,837
Members
47,385
Latest member
Joneswilliam01

Latest Threads

Top