This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Front Page > April 2004 > ASP Session & Frontpage





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ASP Session & Frontpage
mik

2004-04-29, 5:37 pm

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


Thomas A. Rowe

2004-04-29, 5:37 pm

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" <nospam@nospam.com> wrote in message news:Oj8kc.152532$Kc3.5021565@twister2.libero.it...
> 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
>
>



MD Websunlimited

2004-04-29, 5:37 pm

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/...lc/formcalc.htm
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible

"mik" <nospam@nospam.com> wrote in message news:Oj8kc.152532$Kc3.5021565@twister2.libero.it...
> 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
>
>



Thomas A. Rowe

2004-04-29, 5:37 pm

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" <none@none.com> wrote in message news:uNCxhlfLEHA.2068@TK2MSFTNGP11.phx.gbl...
> 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/...lc/formcalc.htm
> FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
>
> "mik" <nospam@nospam.com> wrote in message news:Oj8kc.152532$Kc3.5021565@twister2.libero.it...
>
>



bu

2004-04-29, 5:38 pm

Thanks, so how i test if there is another application defined in the
subwebs? (i have't made that)

"MD Websunlimited" <none@none.com> ha scritto nel messaggio
news:uNCxhlfLEHA.2068@TK2MSFTNGP11.phx.gbl...
> 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/...lc/formcalc.htm
> FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
>
> "mik" <nospam@nospam.com> wrote in message

news:Oj8kc.152532$Kc3.5021565@twister2.libero.it...
>
>



Thomas A. Rowe

2004-04-29, 5:38 pm

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" <nospam@nospam.com> wrote in message news:6h9kc.153055$Kc3.5024149@twister2.libero.it...
> Thanks, so how i test if there is another application defined in the
> subwebs? (i have't made that)
>
> "MD Websunlimited" <none@none.com> ha scritto nel messaggio
> news:uNCxhlfLEHA.2068@TK2MSFTNGP11.phx.gbl...
> that there is not another global.asa or that an
> Caculator
> news:Oj8kc.152532$Kc3.5021565@twister2.libero.it...
>
>



mik

2004-04-29, 5:38 pm

So if i want to use a "sparse" site authentication, it is not possible?

"Thomas A. Rowe" <tarowe@mvps.org> ha scritto nel messaggio
news:e0zDUAgLEHA.2260@TK2MSFTNGP09.phx.gbl...
> 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" <nospam@nospam.com> wrote in message

news:6h9kc.153055$Kc3.5024149@twister2.libero.it...
Make[color=darkred]
other[color=darkred]
>
>



Thomas A. Rowe

2004-04-29, 5:38 pm

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" <nospam@nospam.com> wrote in message news:PE9kc.29069$Qc.1113394@twister1.libero.it...
> So if i want to use a "sparse" site authentication, it is not possible?
>
> "Thomas A. Rowe" <tarowe@mvps.org> ha scritto nel messaggio
> news:e0zDUAgLEHA.2260@TK2MSFTNGP09.phx.gbl...
> is to keep all restricted
> sessions.
> news:6h9kc.153055$Kc3.5024149@twister2.libero.it...
> Make
> other
>
>



mik

2004-04-29, 5:38 pm

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" <tarowe@mvps.org> ha scritto nel messaggio
news:eW93$QgLEHA.2260@TK2MSFTNGP09.phx.gbl...
> 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" <nospam@nospam.com> wrote in message

news:PE9kc.29069$Qc.1113394@twister1.libero.it...
approach[color=darkred]
losing[color=darkred]
follow.[color=darkred]
Form[color=darkred]
autentication:[color=darkred]
>
>



Thomas A. Rowe

2004-04-29, 5:38 pm

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" <nospam@nospam.com> wrote in message news:NT9kc.153364$Kc3.5025695@twister2.libero.it...
> 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" <tarowe@mvps.org> ha scritto nel messaggio
> news:eW93$QgLEHA.2260@TK2MSFTNGP09.phx.gbl...
> news:PE9kc.29069$Qc.1113394@twister1.libero.it...
> approach
> losing
> follow.
> Form
> autentication:
>
>



Arnold Gao[MSFT]

2004-04-30, 4:30 am

Hi Mike,

It appears that this is a development-related request that would be best
addressed in the developer newsgroups. The developer newsgroups are located
at: http://msdn.microsoft.com/newsgroups/default.asp.

Sincerely,

Arnold Gao

Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.

michele

2004-04-30, 4:30 am

The problem is that the web site works very well locally, without losing
session, but not when publishing it!


"Thomas A. Rowe" <tarowe@mvps.org> ha scritto nel messaggio
news:ezJIvfgLEHA.3892@TK2MSFTNGP11.phx.gbl...
> 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" <nospam@nospam.com> wrote in message

news:NT9kc.153364$Kc3.5025695@twister2.libero.it...
web[color=darkred]
contents[color=darkred]
possible?[color=darkred]
see:[color=darkred]
the[color=darkred]
http://www.websunlimited.com/order/...lc/formcalc.htm[color=darkred]
some[color=darkred]
>
>



Stefan B Rusynko

2004-04-30, 7:28 am

FYI
The MSDN newsgroups point pack to this newsgroup for programming FP

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


""Arnold Gao[MSFT]"" <v-agao@online.microsoft.com> wrote in message news:ILxjvMnLEHA.3364@cpmsftngxa10.phx.gbl...
| Hi Mike,
|
| It appears that this is a development-related request that would be best
| addressed in the developer newsgroups. The developer newsgroups are located
| at: http://msdn.microsoft.com/newsgroups/default.asp.
|
| Sincerely,
|
| Arnold Gao
|
| Microsoft Partner Online Support
|
|
| Get Secure! - www.microsoft.com/security
|
| ====================================================
| When responding to posts, please "Reply to Group" via
| your newsreader so
| that others may learn and benefit from your issue.
| ====================================================
| This posting is provided "AS IS" with no warranties, and
| confers no rights.
|


Arnold Gao[MSFT]

2004-04-30, 5:33 pm

Hi,

Based on my experience, it is a pure ASP session issue. Even without using
FrontPge, we will encounter this issue as well. That's why I asked you to
submit this question to the MSDN newsgroup.

By the way, someone else has the exact same issue as yours. In the end, he
found this problem only exists on certain client.

Sincerely,

Arnold Gao

Microsoft Partner Online Support


Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via
your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and
confers no rights.

Thomas A. Rowe

2004-04-30, 5:34 pm

Have you check with your host regarding this issue?

--
==============================================
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

"michele" <NOSPAM@jumpy.it> wrote in message news:c6su2p$u8s$1@lacerta.tiscalinet.it...
> The problem is that the web site works very well locally, without losing
> session, but not when publishing it!
>
>
> "Thomas A. Rowe" <tarowe@mvps.org> ha scritto nel messaggio
> news:ezJIvfgLEHA.3892@TK2MSFTNGP11.phx.gbl...
> authentication scheme, just sub
> content in a single
> the site to be indexed by
> use to access the subweb so
> for each link.
> news:NT9kc.153364$Kc3.5025695@twister2.libero.it...
> web
> contents
> possible?
> see:
> the
> http://www.websunlimited.com/order/...lc/formcalc.htm
> some
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews