ASP Session & Frontpage

M

mik

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
 
T

Thomas A. Rowe

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)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Thomas A. Rowe

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)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
B

bu

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

MD Websunlimited said:
Hi Mik,

Even if the other directories are subwebs the session should follow. Make
that there is not another global.asa or that an
 
T

Thomas A. Rowe

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)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Thomas A. Rowe

Please explain "sparse" site authentication.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
M

mik

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
 
T

Thomas A. Rowe

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)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
A

Arnold Gao[MSFT]

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.
 
M

michele

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


Thomas A. Rowe said:
Ok, I have done this as well, but I don't include subweb in the
authentication scheme, just sub
 
S

Stefan B Rusynko

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




| 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.
|
 
A

Arnold Gao[MSFT]

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.
 
T

Thomas A. Rowe

Have you check with your host regarding this issue?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

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

Top