473,511 Members | 15,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SessionState & Remoting

Using VS 2003, i have a web application that has a business layer & a data access layer. on most
installations of my web site, the sql server is residing somewhere in the network and i configure
the DAL to have the SQL connection string. i now have a customer who decided that there should be a
firewall between the Web site and the DB server and that communications between the WEB & DB servers
can only be done using the IIS. so i added support for remoting to my web site and now the DAL is
created on the DB server using remoting. this all works great but i still need one more thing to
solve. i need to have the session state (i am working in SQLMode) to also connect to the DB using
remoting. my question: if i configure in the remoting config file that the sessionstate class should
also be remoted will that work? is there any other solution on VS 2003?

thanks
Dani Avni
Mar 13 '07 #1
1 1201
Generally speaking, I'm unhappy with using the Session for storing large
amounts of data. It is my experience that this data should belong to some
other object and that the Session should store a reference to that object,
to make it accessible globally. My preference, therefore, in this case
would be to understand the nature of the object whose data is currently
being stored in the Session and then create it as a separate object. You
can then make that object Serializable and pass it to your remote object.

Of course, this means that both sides of the remote connection will need a
definition of the object - so if you're using soapsuds.exe to create your
proxy you will have to use the -gc option otherwise you may get an error
saying either that the type has been defined twice or that a type mismatch
has occurred (because without the -gc option soapsuds will create a
definition of the object you pass in, in the proxy - which is not what you
want.

HTH
Peter
"Dan Avni" <da*****@officecore.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Using VS 2003, i have a web application that has a business layer & a data
access layer. on most installations of my web site, the sql server is
residing somewhere in the network and i configure the DAL to have the SQL
connection string. i now have a customer who decided that there should be
a firewall between the Web site and the DB server and that communications
between the WEB & DB servers can only be done using the IIS. so i added
support for remoting to my web site and now the DAL is created on the DB
server using remoting. this all works great but i still need one more
thing to solve. i need to have the session state (i am working in SQLMode)
to also connect to the DB using remoting. my question: if i configure in
the remoting config file that the sessionstate class should also be
remoted will that work? is there any other solution on VS 2003?

thanks
Dani Avni

Mar 14 '07 #2

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

Similar topics

2
1890
by: Nick | last post by:
Is there a way that if I host my remoted object in IIS (not having to mess with encryption & authentication via a custom sink) that the server can raise events and the clients can detect them? If...
4
2580
by: Peter Wagner | last post by:
Hi There are 2 different .NET Programs A und B. I'll drag a TreeNode from a TreeView in A into a ListView in B. In B I'll extract values from the dropped TreeNode. Unfortunately I don't know...
6
1799
by: Z D | last post by:
Hello, Is it true that I need to push the DLL for my entire class if I wish to use CAO remoting??? Can't I just use an Interface to the class on the client side and instantiate the object in...
1
1092
by: Jignesh | last post by:
Situtation: I want to send mails from the site on regular basis may be weekly/daily to all subscribed users. This activity should be automated/sheduled. My Thinking: Possible solution can be...
3
4534
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function...
2
1678
by: ivanL | last post by:
In web.config, I can set SessionState mode to "Off" while using Forms authentication, they have 2 diff mechanisms, is this correct?
4
2978
by: sjoshi | last post by:
Hello All I'm trying this to filter group users bu tI keep getting an unspecified error when invoking FindOne method. Any help is greatly appreciated. public static DirectoryEntry...
5
3860
by: mitch | last post by:
Hello, Basically, I want my application to run only one instance at a time and pass command line arguments to a running instance. I have all of this working, I used the IPC Remoting channel and...
5
1834
by: Nick | last post by:
Hi there, Can anyone tell me what RTD is? And can it be used for simple interprocess communication? I am just interested in sending strings to a previous instance. I am currently using .NET...
0
7148
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
7430
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...
1
7089
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
7517
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...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.