Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Blues... 1

Status
Not open for further replies.

bigfoot

Programmer
May 4, 1999
1,779
US
ok, so what if in my root folder, I created an application. Would the whole site share session var's?

All I am saving is who is logged on! Thats all I need. What about the SQL Server ASPSession database? I installed it, and I am looking into it now. Anyone using it?

This is drivin' me nuts, (no... more nuts)
 
Suspected, but in a very quick test I would say that session variables are local to the Site they are created in. I have 2 sites that both use a session("username") to check if someone has logged on. Site 1 was logged in, site 2 forced me to login.

Cookies can be used across sites. Of course this might have limited value depending on what you want to do.

Rob
 
Hey big foot,

Sorry I didn't get a chance to reply to your other post yet.

A portal is basically just an interface into something. For instance, Yahoo is a portal. When you first come to Tek-Tips, it could be considered a portal. Its a gateway to something.

So at my last gig, we did a portal application for them. What this meant was they had a single point of entry to their applications.

For instance, lets say you have a client, and they need three applications: app1, app2, app3. If you create one interface to access all of those, thats in a sense a portal.

NOw, what we then did was make all those "applications" sub folders within the main portal app (so still only 1 virtual directory, but with some sub directories to organize the code). In this way, session variables can be shared, and you can set up custom security schemes to make sure people only get access to the apps they need.

I'm doing a similar thing for my church right now, and it really is the best way I find to have many small apps talk to each other.

To answer your question though: no, session var's are only shared within its own application (virtual directory)

hth

D'Arcy
 
Thanks D'Arcy. I'm going to play with this idea. So I DON'T need to create a virtual folder for each application if there is one at the entrence to my web.

I seem to remember ASP working this way too. I created a virtual folder and gave it an application name below the root's one, and it stopped sharing vars....

Does this effect the ASP script that's there already? If I create a virtual folder and give it an app name. Himmm

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top