Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Cookieless session problem...

Reply
Thread Tools

Cookieless session problem...

 
 
=?Utf-8?B?SmFjIFRpbW1z?=
Guest
Posts: n/a
 
      09-23-2005
Hi,

I am building a mobile site. It has to have cookieless sessions enabled as
asp.net mobile stores viewstate information for controls in session. I need
one directory in the application (that takes input from a remote site), to
not have cookieless sessions as it can't redirect the call from
/_test/scriptname.aspx to /{sessionID}/_test/scriptname.aspx. I am able to do
this using the web.config location element, however I get the error "It is an
error to use a section registered as allowDefinition='MachineToApplication'
beyond application level. This error can be caused by a virtual directory not
being configured as an application in IIS.".

This can be solved by making the "_test" directory an application in iis,
but then it needs its on bin folder for the dll's etc. I was wonder if anyone
knew of a way around this, so I don't need to make the "_test" directory an
application or can just disable sessions for certain scripts.

Thanks in advance for any suggestions...
-Jac
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QnJhZCBSb2JlcnRz?=
Guest
Posts: n/a
 
      09-23-2005
Have you tried the EnableSessionState attribute of the @ Page directive?

"Jac Timms" wrote:

> Hi,
>
> I am building a mobile site. It has to have cookieless sessions enabled as
> asp.net mobile stores viewstate information for controls in session. I need
> one directory in the application (that takes input from a remote site), to
> not have cookieless sessions as it can't redirect the call from
> /_test/scriptname.aspx to /{sessionID}/_test/scriptname.aspx. I am able to do
> this using the web.config location element, however I get the error "It is an
> error to use a section registered as allowDefinition='MachineToApplication'
> beyond application level. This error can be caused by a virtual directory not
> being configured as an application in IIS.".
>
> This can be solved by making the "_test" directory an application in iis,
> but then it needs its on bin folder for the dll's etc. I was wonder if anyone
> knew of a way around this, so I don't need to make the "_test" directory an
> application or can just disable sessions for certain scripts.
>
> Thanks in advance for any suggestions...
> -Jac

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmFjIFRpbW1z?=
Guest
Posts: n/a
 
      09-23-2005
brilliant, thank you!
i can't believe i missed that...
i looked on this page thinking there might be something i could do in the
page directive.
http://msdn.microsoft.com/library/de.../cpconpage.asp
thanks again.
-jac


"Brad Roberts" wrote:

> Have you tried the EnableSessionState attribute of the @ Page directive?
>
> "Jac Timms" wrote:
>
> > Hi,
> >
> > I am building a mobile site. It has to have cookieless sessions enabled as
> > asp.net mobile stores viewstate information for controls in session. I need
> > one directory in the application (that takes input from a remote site), to
> > not have cookieless sessions as it can't redirect the call from
> > /_test/scriptname.aspx to /{sessionID}/_test/scriptname.aspx. I am able to do
> > this using the web.config location element, however I get the error "It is an
> > error to use a section registered as allowDefinition='MachineToApplication'
> > beyond application level. This error can be caused by a virtual directory not
> > being configured as an application in IIS.".
> >
> > This can be solved by making the "_test" directory an application in iis,
> > but then it needs its on bin folder for the dll's etc. I was wonder if anyone
> > knew of a way around this, so I don't need to make the "_test" directory an
> > application or can just disable sessions for certain scripts.
> >
> > Thanks in advance for any suggestions...
> > -Jac

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sessionState cookieless and forms cookieless ravisingh11@gmail.com ASP .Net 2 05-09-2006 11:26 PM
Cookieless Session Link, Cause of Session State Problem? fizbang@gmail.com ASP .Net 1 01-19-2006 03:53 PM
Cookieless session, but session ID as a query string Hope Paka ASP .Net 0 06-07-2005 06:25 PM
Session contents lost despite Session.Timeout = 3000; and <sessionState mode="InProc" cookieless="false" timeout="300"> Carpe Diem ASP .Net 3 02-23-2004 07:10 PM
Cookieless Session and SearchEngines (Google, etc.) Jan Wurl ASP .Net 0 07-04-2003 05:44 PM



Advertisments
 



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