473,657 Members | 2,801 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 1211
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*****@office core.comwrote in message
news:%2******** ********@TK2MSF TNGP04.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
1902
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 so what would be the best way to go about having the client handle an event that is fired from the server...I am currently using SingleCall and not Singleton.
4
2586
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 how to extract the values. :-( Code in B -------------- private void ListView_DragDrop(object sender,
6
1808
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 a similar fashion to using SAO Singleton with an interface? ie: Dim MyPerson As IPerson
1
1101
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 that i shall use Remoting. SingleTon. to solve this. this is what i am planning to do. Step #1 I shall create a remoting class. In the constructor of the class i will start a thread which will be in an infinite loop. I will ask the thread to sleep...
3
4547
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 Session_Start() { Session.Timeout = 3000; } in global.asax
2
1688
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
2998
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 GetDirectoryRoot() { return new DirectoryEntry("LDAP://RootDSE"); }
5
3869
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 my program handles the command line arguments well. However, after my program has been running for a little while (say 5-10 minutes) the command line arguments no longer are passed, and instead it causes a .NET Remoting exception claiming to have...
5
1843
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 Remoting via the "Windows Application Framework", but unfortunately McAfee's crappy firewall is capable of blocking the internal connection and causing any application that utilises it to crash, it doesn't even raise an unhandled exception via the
0
8384
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8302
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8718
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6162
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5630
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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 we have to send another system
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.