Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Why is my sessions suddently lost? Its happening in CreateTextFile

Reply
 
Old 01-06-2009   #1 (permalink)
loopstudio


 
 

Why is my sessions suddently lost? Its happening in CreateTextFile

Hi

Suddently for a website I have been using for several years it started to
show me login screens all the time.
It happened because the sessions was lost.
I have now been tracing a lot and can reproduce the problem allmost 99% of
the times with a little testprogram.

Both the built in sessionID and my own session variable is lost in the way
that the sessionID is incremented by at least 1 and my own session cookie
just disappears!

I can make the sesison lost with this codeline:

set fileObj = fsoObj.CreateTextFile(filename)

Strangely I found out that if I ensures that the length of the filename
incl. path is below 86 chars, then it doesnt kill the session!
(But it have all worked before for several years!)

Then it continues to the next line:

set fileObj = fsoObj.getFile(filename)

And then this line:

set tsObj = fileObj.OpenAsTextStream(forWriting, tristateFalse)

And then it just kills the session here!

Strangely, then I have found out, if I change the length of the filename
again, this time below 61 chars, then it can also process this line without
killing my session.

What the heck is this? ANy ideas?

I have:
Win Web Server 2003
classic ASP

The problem can be reproduced in both IE 6 & 7 and FF, so it doesnt seem to
be client related.
Could it be:
- a windows update?
- a corrupted IIS?
- a IIS setting?
- users or user rights?

PS: The program is running and processing all codelines - it just kills the
sessionID and my own session cookie

It happened here in december 2008.

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Wtf!! Why is this happening!? Help me! Sound & Audio
What is really happening Vista networking & sharing
Windows suddently freez Vista General
Wan Miniport SSTP suddently the driver will not load... (vista 64 Vista hardware & devices
Sound and video files suddently do not play Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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