Avatar of da_sotong
da_sotong

asked on 

How to prevent users from cloning session/browsers (ie Ctrl-N)?

Hi all,

There are 2 questions pertaining to browser cloning which I need help on:

1) If the user does a Ctrl-N after loading the main page on my application, session attributes will overlap each other, say for instance, session.getAttribute("testObj") will retrieve values from parent browser though I am doing enquiry on child browser.

2) If the user does a Ctrl-N in the midst of submitting a form, the child browser's session will be inherited from the parent browser, hence, the user will be able to submit the same record twice, once from the parent browser, once from the child.

In view of the 2 questions as mentioned, is there anyway we can make sure at any one time, only one instance of the web application is active?

Any help or advice is deeply appreciated. Thanks in advance.
Web ApplicationsWeb FrameworksScripting Languages

Avatar of undefined
Last Comment
Kurt_Miebach
ASKER CERTIFIED SOLUTION
Avatar of DropZone
DropZone
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of da_sotong
da_sotong

ASKER

DropZone,

Thank you so much for the comprehensive solution.

However, I do have some qualms about implementing the state machine in my web application.

If we make use of session to store a data structure which helps to simulate the state machine, wouldn't everything be back to square one since session might be cloned once again?

I have thought of the implementing the State Machine using persistence storage (database) but that results in high overhead.

Appreciate your advice. Do you have any suggestions/comments?

Thanks in advance. =)
SOLUTION
Avatar of DropZone
DropZone
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
Avatar of Kurt_Miebach
Kurt_Miebach

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
Avatar of Kurt_Miebach
Kurt_Miebach

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Scripting Languages
Scripting Languages

A scripting language is a programming language that supports scripts, programs written for a special run-time environment that automate the execution of tasks that could alternatively be executed one-by-one by a human operator. Scripting languages are often interpreted (rather than compiled). Primitives are usually the elementary tasks or API calls, and the language allows them to be combined into more complex programs. Environments that can be automated through scripting include software applications, web pages within a web browser, the shells of operating systems (OS), embedded systems, as well as numerous games. A scripting language can be viewed as a domain-specific language for a particular environment; in the case of scripting an application, this is also known as an extension language.

30K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo