Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Pass SessionID from 1 fn to other

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
XML newbie: Urgent pls help! - 21 Feb 2006 18:47 GMT
How should I pass the SessionID(when I logon, I get the SessionID) from 1
function to another in VB.Net.

I declared g_SessionID globally, then in another function, I take SessionID
as input and use it like this:
queryAssetListXml = "<?xml version='1.0' ?>" & _
                           "<QueryAssetList2
xmlns=""urn:schemas-tms:QueryAssetList2"">" & _
                           "<SessionID>" & g_SessionID & "</SessionID>" & _
                           "</QueryAssetList2>"

But, I notice that even I get the SessionID , SessionID still remains
Null.Any idea?
Axel Dahmen - 22 Feb 2006 20:49 GMT
It seems...

a) you are programming under ASP.NET
b) both functions are called in separate pages

Here are a few hints:

* HTTP is a stateless protocoll, means everything not stored in Session[] or
Application[] gets lost after each page request.

* The Session object is available from *any* page in your web application
and even from within classes outside using the static
HttpContetxt.Current.Session object. So there is no need to store it
anywhere.

* Using global variables is bad programming style.

HTH,
www.sportboatcharter.com
Axel Dahmen

--------------------------
> How should I pass the SessionID(when I logon, I get the SessionID) from 1
> function to another in VB.Net.
[quoted text clipped - 9 lines]
> But, I notice that even I get the SessionID , SessionID still remains
> Null.Any idea?
XML newbie: Urgent pls help! - 23 Feb 2006 18:18 GMT
I am using VB.Net

> It seems...
>
[quoted text clipped - 33 lines]
> > But, I notice that even I get the SessionID , SessionID still remains
> > Null.Any idea?
Axel Dahmen - 04 Mar 2006 00:36 GMT
> I am using VB.Net

ASP.NET is a framework, not a language. You are utilizing ASP.NET when
programming using VB.NET, C#.NET, J#.NET or any other language supporting
the .NET framework.

HTH,
Axel Dahmen

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.