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

How to check whether session is existing or not

Hi friends,

My problem is...i want to open an application on click of some link...but before opening that application i want to check if that application is already opened with some other login id or not....if it is already opened with some other id i want to show a warning message...

for example...suppose i want to open yahoo on click of some link...and suppose yahoo is having the restriction that at a time only one user can login from same machine...now if someone is already logged in to yahoo on my machine and i'm clicking my link...then it shoul give me a popup message that one user is already logged in...
Sep 27 '07 #1
1 2391
dmjpro
2,476 2GB
Hi friends,

My problem is...i want to open an application on click of some link...but before opening that application i want to check if that application is already opened with some other login id or not....if it is already opened with some other id i want to show a warning message...

for example...suppose i want to open yahoo on click of some link...and suppose yahoo is having the restriction that at a time only one user can login from same machine...now if someone is already logged in to yahoo on my machine and i'm clicking my link...then it shoul give me a popup message that one user is already logged in...

Look, using JavaScript you can't execute Server Side code, except Ajax.
Now here you can solve your problem by using cookie.
You know it.
if not then go for Google :-)

Kind regards,
Dmjpro.
Sep 27 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: fr? | last post by:
Hi, i have a website , on wich users have to log in credentials are checked against mysql db some session vars are set during login for use somewhere else in the code. Is there a way to...
0
by: james | last post by:
I am new to php and need some help getting the session variables into include files. (after-thought, Sorry for the drawn out post but I really, really need help....;) Here's what I'm doing.. ...
3
by: RAD | last post by:
I am working with an evaluation copy of SQL Server 2000 for the first time; my DB experience lies with MS Access. I have a simple table in SQL Server (tblCompany) that has a field called...
1
by: Yaro | last post by:
Hello DB2/NT 8.1.6 In procedure (SQL) I declare GLOBAL TEMPORARY TABLE. Sometimes this procedure is called twice a session and error creating table occure. I know, I can create table on session...
0
by: Larry Lau | last post by:
Hi, I would like to know if it is possible to launch a new browser instance from an existing browser instance with a separated newly created session. window.open(url) already keep you in the...
3
by: Uwe | last post by:
Howdy! I've googled and googled for this without success, and either it's so easy that nobody has ever asked, or there is some serious reason nobody would do this. But I'm going to ask anyway....
1
by: Bob | last post by:
Many single sign on systems can check whether a particular session is alive if it's passed a sessionID via web service. How is this done in .NET if the service app uses InProc session? I can't...
4
by: Simon Gare | last post by:
Hi all, below is an insert statement on an asp page that stores the date and time that a driver logged on, what I need is to check that they are now already logged on fields are SQL Server...
2
by: =?Utf-8?B?VmxhZCBIcnlib2s=?= | last post by:
This one should be simple, but I can't find the answer in MSDN. There are cases when it's necessary for controls, master pages and other reusable units of code-behind to determine at run time...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.