Hi everyone,
thought my current testing, it seems a new session is opened for a user per
browser window. I would like my sessions to track based on the machine, i.e.
once per machine.
What would I need todo to enable this functionality?
Kind regards everyone
Taz 6 1792
As far as I know, you would have to roll your own session state.
"Tarun Mistry" <no****@nospam. comwrote in message
news:uI******** ******@TK2MSFTN GP05.phx.gbl...
Hi everyone,
thought my current testing, it seems a new session is opened for a user
per browser window. I would like my sessions to track based on the
machine, i.e. once per machine.
What would I need todo to enable this functionality?
Kind regards everyone
Taz
you would need some way to identify the machine. if you are on a local lan
and no proxy is used, you could tie your sessions to the ipaddress, rather
an a browser cookie. if its an internet/extranet app you will need an
active/x control to get a machine id.
-- bruce (sqlwork.com)
"Tarun Mistry" <no****@nospam. comwrote in message
news:uI******** ******@TK2MSFTN GP05.phx.gbl...
Hi everyone,
thought my current testing, it seems a new session is opened for a user
per browser window. I would like my sessions to track based on the
machine, i.e. once per machine.
What would I need todo to enable this functionality?
Kind regards everyone
Taz
Hi guys,
thanks for the replies.
I'm unsure if im doing something wrong here, however I come from a PHP
background, here, PHP only writes 1 session per hostname/ipaddress.
In a php application, if I open 3 browsers pointing to a page session.php,
they will all contain reference to the same session. However if I open 3
browsers to session.aspx, they will all contain 3 different sessions. I am
trying to get functionality that is similar to PHP, is this possible? Should
I be looking at directly manipulating the cookie instead?
Thanks everyone.
Taz
You could try a cookieless session.
By default ASP/ASP.NET uses a temporary cookie to handle session. The
behavior for windows used opened explicittely by the user is client side
depended (i.e. depends wether cookies are shared or not between those
windows).
A cookieless session (enabled in web.config) would likely allow to overcome
this problem (as the URL includes the information needed to establish the
session). A custom provider could also be a possible solution.
The exact scenario may help (you could have perhaps some other solution that
opening 3 browsers to point to these pages ?). For example when someone
needs to connect multiple times to the same application, I would see if it
could be built in in to the application (for application as in a mail
application that allows to have a mail box managed by those you'll add in an
access list).
--
Patrice
"Tarun Mistry" <no****@nospam. coma écrit dans le message de news:
%2************* ***@TK2MSFTNGP0 5.phx.gbl...
Hi guys,
thanks for the replies.
I'm unsure if im doing something wrong here, however I come from a PHP
background, here, PHP only writes 1 session per hostname/ipaddress.
In a php application, if I open 3 browsers pointing to a page session.php,
they will all contain reference to the same session. However if I open 3
browsers to session.aspx, they will all contain 3 different sessions. I am
trying to get functionality that is similar to PHP, is this possible?
Should I be looking at directly manipulating the cookie instead?
Thanks everyone.
Taz
Sessions are opened per browser instances, and they are completely separate.
If you are using ASP.NET 2.0, you can use Profile Services Feature instead.
and if you are not storing objects, you can use cookies
--
Muhammad Mosa
Software Engineer & Solution Developer
MCT/MCSD.NET
MCTS: .Net 2.0 Web Applications
MCTS: .Net 2.0 Windows Applications
"Tarun Mistry" wrote:
Hi everyone,
thought my current testing, it seems a new session is opened for a user per
browser window. I would like my sessions to track based on the machine, i.e.
once per machine.
What would I need todo to enable this functionality?
Kind regards everyone
Taz
Hi everyone,
>
thought my current testing, it seems a new session is opened for a user per
browser window. I would like my sessions to track based on the machine, i.e.
once per machine.
What would I need todo to enable this functionality?
Kind regards everyone
Taz
If you open a new IE window with Ctrl-N (or File|New|Window ), then the
windows will share the cookies and therefore the sessions.
If you open a new IE window by clicking the "e" in the quicklaunch
panel, then it is a separate instance with a different set of cookies
(and thus sessions).
How FireFox or other browsers react in this case, I don't know.
Hans Kesting This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: |
last post by:
This is a very open ended question. I have an app with a page that uses link
buttons to change the display. On the prior page you have a list of objects.
You click one of those objects to see it's details. I have nav Link buttons
that allow you to go to previous or next object from the object list on
previous page. In the command event of the linkbutton, the page is redrawn
with the details of the next or previous object. I am using...
|
by: Darrin J Olson |
last post by:
I am trying to end a session for a site without having to completely close
the browser to end it.
When I access the site and log in it works fine. If I log out and in with a
different account without closing the browser, I get the first session's
information. Also, if a open another browser and log in with a different
account I get the session from the first browser. I've tried deleting all
cookies and any cached pages, but still get the...
|
by: Terri |
last post by:
Hi All,
I'd like to build a series of pages with next and back buttons that a user
could enter data in. I'd like the data to be maintained if for example the
user goes from page1 to page2 and then back to page1.
I believe I could create hidden form fields on the pages and then post the
forms data back and forth until my user gets to the last page when all the
variables are submitted to a database.
|
by: Chris |
last post by:
When a request comes into a page on my ASP.net site and a session is
not found, I want to detect whether the request is an initial request
or if the user did have a session going that has now been lost and
show an explanatory message before restarting the session.
Rather than tagging a 'session in progress' flag on the end of every
request querystring I'd like to detect it using data sent in every
request.
One idea I had was that when...
|
by: Dominic |
last post by:
My question is about how to maintain view state in mobile ASP.NET
across postback / request in a web farm environment.
First of all, let's assume the web-farm does NOT use stick-session
feature. In other words, different web servers may serve different
requests in the SAME session.
In non-mobile ASP.NET, my understanding is that the view state
information is passed between each client browser and server with
every post-back. Even if...
| |
by: KMZ_state |
last post by:
We have a question here where a developer says that if the same user starts 2
instances of the application on his machine, the session variables may get
mixed up b/c the session is PER IP ADDRESS. I thought each browser instance
had its own session and the two instances of the application would never get
mixed up? Thanks.
|
by: Ned Balzer |
last post by:
Hi all,
I posted this question some time ago in an earlier thread but so far I
still don't have an understanding of why this is happening or what I
can do to fix it.
I use Session variables, such as Session("username") to store a lot of
information about who is logged in to my app and what they can do.
Since the app permits certain users to impersonate other users (permits
some users to delegate their work to assistants, who are...
|
by: Joseph Geretz |
last post by:
I've been looking at two approaches for the maintenance of Session state for
a Web Service application.
One approach uses the old familiar Session object which I've used in the
past for Web applications. As far as I can see, the Session approach is
non-standard since Web Services are supposed to be agnostic with respect to
their clients. It seems that cookies are outside the Web Service standard;
therefore, such a Web Service application...
|
by: anjaligoel |
last post by:
Good morning for everyone
please anyone tell me tht how can i maintain the session through javascript
i found that we can use cookies in javascript but can we maintain session in it.
currently i am working in the .net and in .net i know how to maintain the session but i have to maintain that session through javascript so please help me
thanks in advance
|
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: 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: 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...
|
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.
| |
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...
| |