Re: Session sharing between ASP and ASP.NET

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



As far as I know, the only solution to this would be to store your session in a SQL Database or using Billy Yuen's MSDN writeup (
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/converttoaspnet.asp).

In my opinion, and though it may vary depending on the nature of your application, a database to store temporary information based on GUID or some other form of session key generated when the user hits the site and persists during the duration of their visit, would be easier than Yuen's example.

Rather than reading from Session["key"], you would simply have stored procedures that read from the temporary store database.

In addition, some Googling has turned up alternatives that I haven't tired--you might check them out.

http://weblogs.asp.net/bleroy/archive/2004/10/21/245826.aspx
http://www.eggheadcafe.com/articles/20021207.asp
http://www.asp101.com/articles/sidney/sharingsessionstate/default.asp

Hope this helps!

-dl

---
David Longnecker
Web Developer
http://blog.tiredstudent.com

Hi,

I would like to ask if there is a possibility that a single session is
used in a web application that contains ASP and ASP.NET application
together for business applications. If yes, how can it be done? Thank
you..



.



Relevant Pages

  • Re: Session or...?
    ... Typically you want to minimize the number of database trips, as well as minimize the amount of information you hold in memory. ... User Credentials, Shopping Cart Contents, Misc Preferences. ... The session would be a good place to store the ID and Qty. ...
    (microsoft.public.dotnet.general)
  • Re: PHP authentication for rookies
    ... >> username and password which you store however you will. ... >> using the php session functions. ... > Are there any advantages to using a database to store user credentials? ... Flat files don't scale or have the ability to do dynamic updates. ...
    (comp.lang.php)
  • Re: PHP MySQL object question
    ... In more complicated applications I layer a business object on top of the database objects. ... For instance, a business object may get information from several different tables, and when you update the data in the business object, it updates the underlying tables. ... Since I am only dealing with one composite record at a time I was planning to store the original field data for before and after comparison to determine when and where updates are needed. ... I could do it as separate session variables, but since each table record will have an associated object, why not just store them that way? ...
    (comp.lang.php)
  • Re: Caching often-used SQL queries
    ... The problem is that neither one of those are user (session) specific. ... need to enable sessions and store the data in the session context. ... Second - you'd be caching so much data that it would ... And if you tune your database server you'll spend much more time processing ...
    (microsoft.public.dotnet.framework.performance)
  • Re: public and private mailboxes randomly dismounting
    ... When posting logs an important piece is the Event ID and Source. ... Information Store First Storage Group: An attempt to move the file ... An error occurred while writing to the database log file of storage group ...
    (microsoft.public.windows.server.sbs)