Never try to be a hard-worker. Be a smart-worker.
My Blog
I add the session details like session name and id in DB's
Originally posted by William Brogden:
The correct solution is to create a custom object that contains all you want to keep and manage it separately. I typically serialize such an object to a disk file.
Bill
Never try to be a hard-worker. Be a smart-worker.
My Blog
SCJP, SCWCD.
|Asking Good Questions|
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Never try to be a hard-worker. Be a smart-worker.
My Blog
Originally posted by Rajkumar balakrishnan:
.
Could i able to handle the session mechanism within Servlet file?
Originally posted by Rajkumar balakrishnan:
.
What should i do inorder to maintain proper session tracking with my users?
Please give me some links that handle session mechanism in Servlet and JSP as well...
Because combining both will be a best practice(I've heard it somewhere else.... )
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Never try to be a hard-worker. Be a smart-worker.
My Blog
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Originally posted by Sagar Rohankar:
Why you need session tracking in your web app ,As you are logging in user . So you try to put a unique User ID with each session when user logged in and perform whatever operations the user wants to perform !
Never try to be a hard-worker. Be a smart-worker.
My Blog
Originally posted by Rajkumar balakrishnan:
While i login as a admin and at the same time my colleague who is next to me also login as admin.. with the same username and password.. :shocked:
Originally posted by seetharaman venkatasamy:
That is called concurrency effect. if you want to controll that
then you need to code server side. you need to compare every session username with database fields(you need to create according to the scenario).
Hope This help
Never try to be a hard-worker. Be a smart-worker.
My Blog
Originally posted by Rajkumar balakrishnan:
Because for my system there is only one admin.. While i login as a admin and at the same time my colleague who is next to me also login as admin.. with the same username and password.. :shocked:
That's the reason why i need a session tracking...I put their user name as session ID and how do i perform a check whether the user session of particular user is already in use!!!
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Never try to be a hard-worker. Be a smart-worker.
My Blog
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Originally posted by Rajkumar balakrishnan:
Its hard to implement that as i need to change my whole project structure....
Originally posted by Rajkumar balakrishnan:
If there is a possible alternative please suggest it to me...
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Never try to be a hard-worker. Be a smart-worker.
My Blog
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Never try to be a hard-worker. Be a smart-worker.
My Blog
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Originally posted by Sagar Rohankar:
Then don't implement it ( or rather not now) , as I already said that the SessionMonitor does not implement your need , you have to study it as per your requirement ,,
To get going, you can use my posted code .. and this code is part of your Login Servlet , i.e the servlet (action ) which authenticate the user
What you really need is to understand the code , and what they exactly affect your application !
Never try to be a hard-worker. Be a smart-worker.
My Blog
I add the listener tag in DD and still its empty HashMap is displayed. What is the problem... Please help me..
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Never try to be a hard-worker. Be a smart-worker.
My Blog
Oh the stink of it! Smell my tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|