473,396 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

C# Session State in all projects

Hi,
I have some projects (webs applications)
and i want to shared Session between the projects but, they are differents
"dll/aplications". Like this:
Session["user"] i want to see then value in all applications
how can i do this?
Using sql-server? How?
thanks a lot....

---------------------------------------------------------
Alexandre Santos
Softway - Sistemas
Tel: (48) 9101-1167 || (48) 251-8664
al**************@softway.com.br
www.softway.com.br
----------------------------------------------------------

Nov 15 '05 #1
4 5370
It seems that you don't understand the meaning of Session variables. A
Session is bind to a specific user, and only one, that access your web
application, so even another user that uses that application cannot see that
variable (but by using a static classes you can do that). Sharing an
information between the users of the same application is done usually
through Application level collection.
So to have an information shared between applications I think you have two
options:
1. bind one application as a client to the second and keep the shared
information at application level in the second
2. use an external repository for that info (DB, file or whatever)
--
Horatiu Ripa

"Alexandre" <al**************@softway.com.br> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
Hi,
I have some projects (webs applications)
and i want to shared Session between the projects but, they are differents "dll/aplications". Like this:
Session["user"] i want to see then value in all applications
how can i do this?
Using sql-server? How?
thanks a lot....

---------------------------------------------------------
Alexandre Santos
Softway - Sistemas
Tel: (48) 9101-1167 || (48) 251-8664
al**************@softway.com.br
www.softway.com.br
----------------------------------------------------------

Nov 15 '05 #2
It seems that you don't understand the meaning of Session variables. A
Session is bind to a specific user, and only one, that access your web
application, so even another user that uses that application cannot see that
variable (but by using a static classes you can do that). Sharing an
information between the users of the same application is done usually
through Application level collection.
So to have an information shared between applications I think you have two
options:
1. bind one application as a client to the second and keep the shared
information at application level in the second
2. use an external repository for that info (DB, file or whatever)
--
Horatiu Ripa

"Alexandre" <al**************@softway.com.br> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
Hi,
I have some projects (webs applications)
and i want to shared Session between the projects but, they are differents "dll/aplications". Like this:
Session["user"] i want to see then value in all applications
how can i do this?
Using sql-server? How?
thanks a lot....

---------------------------------------------------------
Alexandre Santos
Softway - Sistemas
Tel: (48) 9101-1167 || (48) 251-8664
al**************@softway.com.br
www.softway.com.br
----------------------------------------------------------

Nov 15 '05 #3
"Alexandre" <al**************@softway.com.br> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
Hi,
I have some projects (webs applications)
and i want to shared Session between the projects but, they are differents "dll/aplications". Like this:
Session["user"] i want to see then value in all applications
how can i do this?
Using sql-server? How? Configure your webapps inside web.config file to use a state server that
would be in memory or use a SQL State server.

See the online help how to do that...

see this section and change it...
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>
--
thanks a lot....

---------------------------------------------------------
Alexandre Santos
Softway - Sistemas
Tel: (48) 9101-1167 || (48) 251-8664
al**************@softway.com.br
www.softway.com.br
----------------------------------------------------------


Nov 15 '05 #4
"Alexandre" <al**************@softway.com.br> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
Hi,
I have some projects (webs applications)
and i want to shared Session between the projects but, they are differents "dll/aplications". Like this:
Session["user"] i want to see then value in all applications
how can i do this?
Using sql-server? How? Configure your webapps inside web.config file to use a state server that
would be in memory or use a SQL State server.

See the online help how to do that...

see this section and change it...
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>
--
thanks a lot....

---------------------------------------------------------
Alexandre Santos
Softway - Sistemas
Tel: (48) 9101-1167 || (48) 251-8664
al**************@softway.com.br
www.softway.com.br
----------------------------------------------------------


Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bill Dodd | last post by:
Is there really no way to have different asp.net applications share session variables? The problem I'm running into is that I have numerous asp.net (and asp) applications that were written as...
1
by: Bill Reynen | last post by:
Hello, Working in ASP.NET. I want to create several projects on the web server /Online /Online/App1 /Online/App2 /Online/App3
14
by: Schoo | last post by:
I have an asp.net app that uses session objects (ag. session("UserID")). The app works fine in development/debug mode. I released it to the test server (Windows 2000 server with other .NET...
3
by: grooby | last post by:
I would like to develop an asp.net Web application using muliple web projects under one solution file and share the session information between web applications( or projects). Is this possible?
5
by: JezB | last post by:
I have various web pages in two different "web application" project assemblies (WebClient1 and WebClient2), and another "class library" assembly WebLib. I have methods in the library which set and...
3
by: Mark | last post by:
Ok, I know that .net inherently does not share session data across asp.net projects, but is there any decent work around to this. We already have a big chunk of our application using the asp.net...
31
by: Harry Simpson | last post by:
I've come from the old ASP camp where session variables were not used. When i started using ASP.NET in 2001, I started using them again because it was ok from what I'd read. I've been merrily...
1
by: yoshibebe | last post by:
Hi, I have developed a project on my local machine. The session state variables are working fine on my local machine. When I port it into a another server called v-projects, and I try to run the...
4
by: Cirene | last post by:
In my web.config I added <pages enableSessionState="true">. In each of my pages I also added EnableSessionState="True" to the Page declaration. (I didn't think this was necessary, but...) ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.