I have an ASP.NET program that references a VB.NET DLL. I had originally
planned for my DLL to put things in the HttpContext.Cur rent collection so
that the ASP.NET can access them throughout an entire session (according to
a tip I saw on a website somewhere), but it turns out that it only lasts for
the current page request. If another page is requested, the contents of
HttpContext.Cur rent are cleared. Except for the lack of proper scope,
HttpContext.Cur rent gives me the functionality that I need.
Is there another class I can throw this stuff into, similar to the way
HttpContext.Cur rent works, that will let the objects last for the entire
session and not just the current request? In ASP.NET there's a Session
class which has the right scope, but I don't know how -- or even if it's
possible -- to access that class from by VB.NET DLL.
- Don 3 1345
"Don" <un*****@oblivi on.com> wrote in message
news:wqt%b.6055 94$JQ1.508433@p d7tw1no... Is there another class I can throw this stuff into, similar to the way HttpContext.Cur rent works, that will let the objects last for the entire session and not just the current request? In ASP.NET there's a Session class which has the right scope, but I don't know how -- or even if it's possible -- to access that class from by VB.NET DLL.
I forgot to mention that I need to be able to recreate this class in a
Windows app. I mean to do this so as to make it seem like a person running
a Windows app is like one session at a website. Again, HttpContext.Cur rent
worked perfectly for everything...ex cept that it just had the wrong scope
for my ASP.NET application.
- Don
Hi,
HttpContext.Cur rent.Session
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"Don" <un*****@oblivi on.com> wrote in message
news:wqt%b.6055 94$JQ1.508433@p d7tw1no...
I have an ASP.NET program that references a VB.NET DLL. I had originally
planned for my DLL to put things in the HttpContext.Cur rent collection so
that the ASP.NET can access them throughout an entire session (according to
a tip I saw on a website somewhere), but it turns out that it only lasts for
the current page request. If another page is requested, the contents of
HttpContext.Cur rent are cleared. Except for the lack of proper scope,
HttpContext.Cur rent gives me the functionality that I need.
Is there another class I can throw this stuff into, similar to the way
HttpContext.Cur rent works, that will let the objects last for the entire
session and not just the current request? In ASP.NET there's a Session
class which has the right scope, but I don't know how -- or even if it's
possible -- to access that class from by VB.NET DLL.
- Don
I tried using that, but when working with my Windows App accessing the DLL,
the HttpContext.Cur rent.Session resolves to Nothing. Is there some way to
initialize it? When I had my code working with just HttpContext.Cur rent, I
needed to put the following line at the start of my Windows app:
HttpContext.Cur rent = New HttpContext(Not hing, Nothing)
to initialize it, so to speak (I imagine this is explicitly doing what, in a
way, the environment is doing for my ASP.NET program). I don't know what to
do to initialize HttpContext.Cur rent.Session at the start of my Windows app,
though.
- Don
"Teemu Keiski" <jo****@aspalli ance.com> wrote in message
news:OC******** ******@TK2MSFTN GP12.phx.gbl... Hi,
HttpContext.Cur rent.Session
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist
"Don" <un*****@oblivi on.com> wrote in message news:wqt%b.6055 94$JQ1.508433@p d7tw1no... I have an ASP.NET program that references a VB.NET DLL. I had originally planned for my DLL to put things in the HttpContext.Cur rent collection so that the ASP.NET can access them throughout an entire session (according
to a tip I saw on a website somewhere), but it turns out that it only lasts
for the current page request. If another page is requested, the contents of HttpContext.Cur rent are cleared. Except for the lack of proper scope, HttpContext.Cur rent gives me the functionality that I need.
Is there another class I can throw this stuff into, similar to the way HttpContext.Cur rent works, that will let the objects last for the entire session and not just the current request? In ASP.NET there's a Session class which has the right scope, but I don't know how -- or even if it's possible -- to access that class from by VB.NET DLL.
- Don This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Astra |
last post by:
Hi All
I've noticed on quite a few ASP sites that when they have a 'MyAccount'
section they transfer the site to https and then when you have logged into
your account successfully and gone back to the majority of the site you move
back to http whilst still being logged in.
I've used the Session var method before to check if a user can have access
to pages, but how on earth can I keep a handle on this when I flip the user
between my...
|
by: PJ |
last post by:
I posted a few days ago concerning requests being blocked from a main window
after a popup window had initiated a file download. Apparently this has to
do with the fact that asp.net or iis serialize all requests from the same
session. Further requests from the same session are being queued until the
download is complete. So, is there any way to override this? Is there
anyway to tell asp.net to not serialize same session requests? Is...
|
by: John Wilcher |
last post by:
Environment: Windows 2000 Server, IIS 5.0, ASP .Net
Framework 1.1, VB .Net source code
We are experiencing a condition that manifests itself as a
loss of all session objects. Intermittently (read as: no
discernable pattern at this point), HTTP requests from
users result in a 'Server Application / Error.' The user
requests a page and the non-custom, Microsoft standard
error page is shown with the above message. We have
verified that...
|
by: Chris Hughes |
last post by:
I have an environment with many thousands of client machines uploading
data files several times each day to a web server via HTTP PUT.
To avoid disk I/O (for performance), I am implementing a HTTP handler
to intercept and process incoming data without touching the disk. I
cannot detect PUT requests with my handler (don't know if this is even
supported), so I'm redirecting all requests to the handler as POST
using an ISAPI filter.
I...
|
by: Dave Wurtz |
last post by:
All,
I'm new to ASP development and I have a basic design question:
Is it ok to store business objects to session variables or is there a better
way to keep object information?
For example, if a user logs onto the website, a user object is created that
stores their full name, email address, street address, phone, etc. This
object also has methods to do 'other' things such as validations, counters,
| |
by: Darrel |
last post by:
I'm dimming a string at the top of my page so I can use it in several
different subs on the page.
I'm setting the text in one sub and then reading it in several. I'd like to
also use this varable on postback. The catch is, since I'm dimming it at the
top of the page, it resets itself on postback.
The fix I cam up with is to, on page load, populate a hidden field with the
value I want, then read that back on postback. But is there a...
|
by: Max |
last post by:
Due to the behaviour of a particular COM object, I need to ensure that a
request for a particular ASP page is finalized before another request for
the page is processed. Does IIS have a way to ensure that subsequent
requests will be queued until the current request is completed?
If not, can IIS be configured to use seperate processes to satisfy requests
for a nominated ASP page?
Thanks in advance.
|
by: Michael Schwarz |
last post by:
Hi,
I have a problem where I have two requests (i.e. two different windows that
are using the same session) that are accessing the session collection. The
requests will need more time on the server, but I get the problem that the
two sessions are not getting updated values from each requests. Is this by
design or is there any solution to do this?
--
Best regards | Schöne Grüße
|
by: =?Utf-8?B?Vkg=?= |
last post by:
Hi, all.
Need help with what seems to be either connection, or threading problem in
my ASP.NET 2.0 application.
The gist of the problem is this: IHttpHandler in my application serves an
HTML page that has two images (image A and image B) in it. Once the HTML page
is served, expected behavior is this:
1) receive request for image A,
2) receive request for image B almost at the same time as for A,
|
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...
|
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...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |