473,324 Members | 2,581 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,324 software developers and data experts.

Old question but not finished yet : sessions

Dear all

I sended this reply to my first issue a few days ago... please help!!!
-----------------------------------------------------------------------------

correct,

but when I am using this session in another ASP.net project on the SAME
server , the session is empty
It seems sessions are lost when you redirect to another page on the same
server but within another project in the SAME solution.

Sounds strange to me, I always thought session were kept on the server,
perhaps I could try to save my sessions in an sql database, but is it
possible for objects like an instance of a class?

Hope someone can help me out!

Best regards

Nick Wouters
Belgium newbie

"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:3C**********************************@microsof t.com...
Have your class write it somewhere or put the object into the session data
after it's filled.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Nick Wouters" wrote:
Please Help, I am a starting ASP.NET programmer...

I have created a class user.vb and compiled it to dll
I can fill the records from this database into the properties and
collections.

My problem is I want to transfer all the information in this object to
another aspx-page...

How can I do this?

Thanks in advance

Nick Wouters
Newbie


Nov 19 '05 #1
1 1000
Session variables are only valid for one web application. So if your
directory structure looked like this:

c:\wwwroot\InetPub
--------- Application 1
bin
---------- Application 2
bin

A session in Application 1 can only be used in the Application 1 web
app, and Application 2 (regardless of whether it is part of the same
solution) cannot see it. If you want to share Session data, you will
either have to persist the data in some location, or you could send the
data via a QueryString variable between directories:

(In Application 1):
<a
href="http://localhost/Application2/GetVariable.aspx?SessionVar=hello">Send</a>

(In Application 2, this code would be in a file named
GetVariable.aspx):
Dim App1SessionVariable As String = Request.QueryString("SessionVar")

There may be other methods as well. Hope that helps.

Scott

Nov 19 '05 #2

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

Similar topics

13
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location...
3
by: Maxime Ducharme | last post by:
Hi group We have a problem with sessions in one of our sites. Sessions are used to store login info & some other infos (no objects are stored in sessions). We are using Windows 2000 Server...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
3
Atli
by: Atli | last post by:
Introduction: Sessions are one of the simplest and more powerful tools in a web developers arsenal. This tool is invaluable in dynamic web page development and it is one of those things every...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.