PC Review


Reply
Thread Tools Rate Thread

ASP Session & Frontpage

 
 
mik
Guest
Posts: n/a
 
      29th Apr 2004
Hi, i'm using asp session object into my pages for autentication:

Session("authuser") = "ok"

The session variable works only in some directories, but in some other
directories if i tests Session("authuser") it results null.

I think that Frontpage isolates some directories?

Please help me.
Thanks


 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      29th Apr 2004
ASP session do not cross subwebs, so all protected content needs to be in the same web.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"mik" <(E-Mail Removed)> wrote in message news:Oj8kc.152532$(E-Mail Removed)...
> Hi, i'm using asp session object into my pages for autentication:
>
> Session("authuser") = "ok"
>
> The session variable works only in some directories, but in some other
> directories if i tests Session("authuser") it results null.
>
> I think that Frontpage isolates some directories?
>
> Please help me.
> Thanks
>
>



 
Reply With Quote
 
MD Websunlimited
Guest
Posts: n/a
 
      29th Apr 2004
Hi Mik,

Even if the other directories are subwebs the session should follow. Make that there is not another global.asa or that an
application has been defined on the directory.

--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
Wish you could calculate form field totals? Well, you can with Form Caculator
http://www.websunlimited.com/order/P...c/formcalc.htm
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible

"mik" <(E-Mail Removed)> wrote in message news:Oj8kc.152532$(E-Mail Removed)...
> Hi, i'm using asp session object into my pages for autentication:
>
> Session("authuser") = "ok"
>
> The session variable works only in some directories, but in some other
> directories if i tests Session("authuser") it results null.
>
> I think that Frontpage isolates some directories?
>
> Please help me.
> Thanks
>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      29th Apr 2004
ASP session do not cross subwebs (if marked as a application root) or changes in domains URLs, such
as:

http://domain.com
http://www.domain.com
http://www.domain.com/subweb
https://www.domain.com

Each of the above will create a unique session ID, as you move between them, and suspend the
previous one until you return, as long as it is within the default 20 minutes, otherwise it expires.
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"MD Websunlimited" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Hi Mik,
>
> Even if the other directories are subwebs the session should follow. Make that there is not

another global.asa or that an
> application has been defined on the directory.
>
> --
> Mike -- FrontPage MVP '97-'02
> http://www.websunlimited.com
> Wish you could calculate form field totals? Well, you can with Form Caculator
> http://www.websunlimited.com/order/P...c/formcalc.htm
> FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
>
> "mik" <(E-Mail Removed)> wrote in message news:Oj8kc.152532$(E-Mail Removed)...
> > Hi, i'm using asp session object into my pages for autentication:
> >
> > Session("authuser") = "ok"
> >
> > The session variable works only in some directories, but in some other
> > directories if i tests Session("authuser") it results null.
> >
> > I think that Frontpage isolates some directories?
> >
> > Please help me.
> > Thanks
> >
> >

>
>



 
Reply With Quote
 
bu
Guest
Posts: n/a
 
      29th Apr 2004
Thanks, so how i test if there is another application defined in the
subwebs? (i have't made that)

"MD Websunlimited" <(E-Mail Removed)> ha scritto nel messaggio
news:(E-Mail Removed)...
> Hi Mik,
>
> Even if the other directories are subwebs the session should follow. Make

that there is not another global.asa or that an
> application has been defined on the directory.
>
> --
> Mike -- FrontPage MVP '97-'02
> http://www.websunlimited.com
> Wish you could calculate form field totals? Well, you can with Form

Caculator
> http://www.websunlimited.com/order/P...c/formcalc.htm
> FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
>
> "mik" <(E-Mail Removed)> wrote in message

news:Oj8kc.152532$(E-Mail Removed)...
> > Hi, i'm using asp session object into my pages for autentication:
> >
> > Session("authuser") = "ok"
> >
> > The session variable works only in some directories, but in some other
> > directories if i tests Session("authuser") it results null.
> >
> > I think that Frontpage isolates some directories?
> >
> > Please help me.
> > Thanks
> >
> >

>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      29th Apr 2004
The setting of the application root is done on the server. Best approach is to keep all restricted
content in the same (sub)web, then you do not have to worry about losing sessions.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"bu" <(E-Mail Removed)> wrote in message news:6h9kc.153055$(E-Mail Removed)...
> Thanks, so how i test if there is another application defined in the
> subwebs? (i have't made that)
>
> "MD Websunlimited" <(E-Mail Removed)> ha scritto nel messaggio
> news:(E-Mail Removed)...
> > Hi Mik,
> >
> > Even if the other directories are subwebs the session should follow. Make

> that there is not another global.asa or that an
> > application has been defined on the directory.
> >
> > --
> > Mike -- FrontPage MVP '97-'02
> > http://www.websunlimited.com
> > Wish you could calculate form field totals? Well, you can with Form

> Caculator
> > http://www.websunlimited.com/order/P...c/formcalc.htm
> > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
> >
> > "mik" <(E-Mail Removed)> wrote in message

> news:Oj8kc.152532$(E-Mail Removed)...
> > > Hi, i'm using asp session object into my pages for autentication:
> > >
> > > Session("authuser") = "ok"
> > >
> > > The session variable works only in some directories, but in some other
> > > directories if i tests Session("authuser") it results null.
> > >
> > > I think that Frontpage isolates some directories?
> > >
> > > Please help me.
> > > Thanks
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
mik
Guest
Posts: n/a
 
      29th Apr 2004
So if i want to use a "sparse" site authentication, it is not possible?

"Thomas A. Rowe" <(E-Mail Removed)> ha scritto nel messaggio
news:(E-Mail Removed)...
> The setting of the application root is done on the server. Best approach

is to keep all restricted
> content in the same (sub)web, then you do not have to worry about losing

sessions.
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "bu" <(E-Mail Removed)> wrote in message

news:6h9kc.153055$(E-Mail Removed)...
> > Thanks, so how i test if there is another application defined in the
> > subwebs? (i have't made that)
> >
> > "MD Websunlimited" <(E-Mail Removed)> ha scritto nel messaggio
> > news:(E-Mail Removed)...
> > > Hi Mik,
> > >
> > > Even if the other directories are subwebs the session should follow.

Make
> > that there is not another global.asa or that an
> > > application has been defined on the directory.
> > >
> > > --
> > > Mike -- FrontPage MVP '97-'02
> > > http://www.websunlimited.com
> > > Wish you could calculate form field totals? Well, you can with Form

> > Caculator
> > > http://www.websunlimited.com/order/P...c/formcalc.htm
> > > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
> > >
> > > "mik" <(E-Mail Removed)> wrote in message

> > news:Oj8kc.152532$(E-Mail Removed)...
> > > > Hi, i'm using asp session object into my pages for autentication:
> > > >
> > > > Session("authuser") = "ok"
> > > >
> > > > The session variable works only in some directories, but in some

other
> > > > directories if i tests Session("authuser") it results null.
> > > >
> > > > I think that Frontpage isolates some directories?
> > > >
> > > > Please help me.
> > > > Thanks
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      29th Apr 2004
Please explain "sparse" site authentication.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"mik" <(E-Mail Removed)> wrote in message news:PE9kc.29069$(E-Mail Removed)...
> So if i want to use a "sparse" site authentication, it is not possible?
>
> "Thomas A. Rowe" <(E-Mail Removed)> ha scritto nel messaggio
> news:(E-Mail Removed)...
> > The setting of the application root is done on the server. Best approach

> is to keep all restricted
> > content in the same (sub)web, then you do not have to worry about losing

> sessions.
> >
> > --
> > ==============================================
> > Thomas A. Rowe (Microsoft MVP - FrontPage)
> > WEBMASTER Resources(tm)
> > http://www.ycoln-resources.com
> > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> > ==============================================
> > To assist you in getting the best answers for FrontPage support see:
> > http://www.net-sites.com/sitebuilder/newsgroups.asp
> >
> > "bu" <(E-Mail Removed)> wrote in message

> news:6h9kc.153055$(E-Mail Removed)...
> > > Thanks, so how i test if there is another application defined in the
> > > subwebs? (i have't made that)
> > >
> > > "MD Websunlimited" <(E-Mail Removed)> ha scritto nel messaggio
> > > news:(E-Mail Removed)...
> > > > Hi Mik,
> > > >
> > > > Even if the other directories are subwebs the session should follow.

> Make
> > > that there is not another global.asa or that an
> > > > application has been defined on the directory.
> > > >
> > > > --
> > > > Mike -- FrontPage MVP '97-'02
> > > > http://www.websunlimited.com
> > > > Wish you could calculate form field totals? Well, you can with Form
> > > Caculator
> > > > http://www.websunlimited.com/order/P...c/formcalc.htm
> > > > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
> > > >
> > > > "mik" <(E-Mail Removed)> wrote in message
> > > news:Oj8kc.152532$(E-Mail Removed)...
> > > > > Hi, i'm using asp session object into my pages for autentication:
> > > > >
> > > > > Session("authuser") = "ok"
> > > > >
> > > > > The session variable works only in some directories, but in some

> other
> > > > > directories if i tests Session("authuser") it results null.
> > > > >
> > > > > I think that Frontpage isolates some directories?
> > > > >
> > > > > Please help me.
> > > > > Thanks
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
mik
Guest
Posts: n/a
 
      29th Apr 2004
Sorry,
I intended to use session authentication in all the directories of the web
site, even in the subdirectories or subwebs, i.e. to put protected contents
in all directories and not in a only one.
Thanks

"Thomas A. Rowe" <(E-Mail Removed)> ha scritto nel messaggio
news:eW93$(E-Mail Removed)...
> Please explain "sparse" site authentication.
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "mik" <(E-Mail Removed)> wrote in message

news:PE9kc.29069$(E-Mail Removed)...
> > So if i want to use a "sparse" site authentication, it is not possible?
> >
> > "Thomas A. Rowe" <(E-Mail Removed)> ha scritto nel messaggio
> > news:(E-Mail Removed)...
> > > The setting of the application root is done on the server. Best

approach
> > is to keep all restricted
> > > content in the same (sub)web, then you do not have to worry about

losing
> > sessions.
> > >
> > > --
> > > ==============================================
> > > Thomas A. Rowe (Microsoft MVP - FrontPage)
> > > WEBMASTER Resources(tm)
> > > http://www.ycoln-resources.com
> > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> > > ==============================================
> > > To assist you in getting the best answers for FrontPage support see:
> > > http://www.net-sites.com/sitebuilder/newsgroups.asp
> > >
> > > "bu" <(E-Mail Removed)> wrote in message

> > news:6h9kc.153055$(E-Mail Removed)...
> > > > Thanks, so how i test if there is another application defined in the
> > > > subwebs? (i have't made that)
> > > >
> > > > "MD Websunlimited" <(E-Mail Removed)> ha scritto nel messaggio
> > > > news:(E-Mail Removed)...
> > > > > Hi Mik,
> > > > >
> > > > > Even if the other directories are subwebs the session should

follow.
> > Make
> > > > that there is not another global.asa or that an
> > > > > application has been defined on the directory.
> > > > >
> > > > > --
> > > > > Mike -- FrontPage MVP '97-'02
> > > > > http://www.websunlimited.com
> > > > > Wish you could calculate form field totals? Well, you can with

Form
> > > > Caculator
> > > > > http://www.websunlimited.com/order/P...c/formcalc.htm
> > > > > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
> > > > >
> > > > > "mik" <(E-Mail Removed)> wrote in message
> > > > news:Oj8kc.152532$(E-Mail Removed)...
> > > > > > Hi, i'm using asp session object into my pages for

autentication:
> > > > > >
> > > > > > Session("authuser") = "ok"
> > > > > >
> > > > > > The session variable works only in some directories, but in some

> > other
> > > > > > directories if i tests Session("authuser") it results null.
> > > > > >
> > > > > > I think that Frontpage isolates some directories?
> > > > > >
> > > > > > Please help me.
> > > > > > Thanks
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      29th Apr 2004
Ok, I have done this as well, but I don't include subweb in the authentication scheme, just sub
directories.

I however find it easier to manage a site by having all of the restricted content in a single
subweb, especially if part of the site is open to the public and I want the site to be indexed by
search engines.

Another reason for using a subweb, is that I can control the URL that is use to access the subweb so
that session doesn't become suspended, without having to use Absolute URLs for each link.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"mik" <(E-Mail Removed)> wrote in message news:NT9kc.153364$(E-Mail Removed)...
> Sorry,
> I intended to use session authentication in all the directories of the web
> site, even in the subdirectories or subwebs, i.e. to put protected contents
> in all directories and not in a only one.
> Thanks
>
> "Thomas A. Rowe" <(E-Mail Removed)> ha scritto nel messaggio
> news:eW93$(E-Mail Removed)...
> > Please explain "sparse" site authentication.
> >
> > --
> > ==============================================
> > Thomas A. Rowe (Microsoft MVP - FrontPage)
> > WEBMASTER Resources(tm)
> > http://www.ycoln-resources.com
> > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> > ==============================================
> > To assist you in getting the best answers for FrontPage support see:
> > http://www.net-sites.com/sitebuilder/newsgroups.asp
> >
> > "mik" <(E-Mail Removed)> wrote in message

> news:PE9kc.29069$(E-Mail Removed)...
> > > So if i want to use a "sparse" site authentication, it is not possible?
> > >
> > > "Thomas A. Rowe" <(E-Mail Removed)> ha scritto nel messaggio
> > > news:(E-Mail Removed)...
> > > > The setting of the application root is done on the server. Best

> approach
> > > is to keep all restricted
> > > > content in the same (sub)web, then you do not have to worry about

> losing
> > > sessions.
> > > >
> > > > --
> > > > ==============================================
> > > > Thomas A. Rowe (Microsoft MVP - FrontPage)
> > > > WEBMASTER Resources(tm)
> > > > http://www.ycoln-resources.com
> > > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> > > > ==============================================
> > > > To assist you in getting the best answers for FrontPage support see:
> > > > http://www.net-sites.com/sitebuilder/newsgroups.asp
> > > >
> > > > "bu" <(E-Mail Removed)> wrote in message
> > > news:6h9kc.153055$(E-Mail Removed)...
> > > > > Thanks, so how i test if there is another application defined in the
> > > > > subwebs? (i have't made that)
> > > > >
> > > > > "MD Websunlimited" <(E-Mail Removed)> ha scritto nel messaggio
> > > > > news:(E-Mail Removed)...
> > > > > > Hi Mik,
> > > > > >
> > > > > > Even if the other directories are subwebs the session should

> follow.
> > > Make
> > > > > that there is not another global.asa or that an
> > > > > > application has been defined on the directory.
> > > > > >
> > > > > > --
> > > > > > Mike -- FrontPage MVP '97-'02
> > > > > > http://www.websunlimited.com
> > > > > > Wish you could calculate form field totals? Well, you can with

> Form
> > > > > Caculator
> > > > > > http://www.websunlimited.com/order/P...c/formcalc.htm
> > > > > > FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
> > > > > >
> > > > > > "mik" <(E-Mail Removed)> wrote in message
> > > > > news:Oj8kc.152532$(E-Mail Removed)...
> > > > > > > Hi, i'm using asp session object into my pages for

> autentication:
> > > > > > >
> > > > > > > Session("authuser") = "ok"
> > > > > > >
> > > > > > > The session variable works only in some directories, but in some
> > > other
> > > > > > > directories if i tests Session("authuser") it results null.
> > > > > > >
> > > > > > > I think that Frontpage isolates some directories?
> > > > > > >
> > > > > > > Please help me.
> > > > > > > Thanks
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= Microsoft ASP .NET 4 11th Apr 2007 05:52 PM
Cross Session Error? Session state and kernel-mode output caching don't mix jason Microsoft ASP .NET 0 30th Aug 2006 06:09 AM
Writing Session Specific Code For Windows 2003 Terminal Server Session OHM Microsoft VB .NET 8 27th May 2004 10:38 AM
Session State - What does it take to establish one single ASP.NET session per "browser session" Jeff Smythe Microsoft ASP .NET 3 2nd Jan 2004 04:10 AM
Frontpage forms and session var. Anthony Boyd Microsoft Frontpage 1 20th Aug 2003 04:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.