This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

ravindranath

Greenhorn
+ Follow
since Nov 07, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ravindranath

Bear Bibeault wrote:Checking the session itself for determining authentication is rife with problems. Don;t do it that way.

Rather, put a value into the session and check for that.



I looked into it but not sure completely how to implement/works. I tried to store user id and last accessed time in a session object. Everytime a request comes in, I caculate the difference(current-lastAccess) in the filter class and if it is less than session timeout I send it to action class otherwise I redirect it to timeout page. I tried to implement this concept but in the filter class when session is timedout (which means session object is not available)and it never made it to this function and went directly to action class. I guess I really didnt get the concept right. Can you please guide me through the process or online resources.

Thanks
10 years ago
Hello,
I have a web application up and running with lot of users. I never looked into session timing out and redirecting to login page. So I did some research and implemented a simple filter where it checks for sessionId and redirects to login page. I tested it out and for a single user/browser it works fine. Now I tried to open multiple browsers with same user/different user and I found out that requstedSessionId value is always same. Lets say I opened one browser, logged in, left it idle and opened second browser did the same thing and doing some functions on second browser. Now after session time out for first browser, I can still do stuff because I guess the session is renewed.
Can you guys advise me on this issue?

code used to check session in the filter:
private boolean isSessionInvalid(HttpServletRequest httpServletRequest) {
boolean sessionInValid = (httpServletRequest.getRequestedSessionId() != null)
&& !httpServletRequest.isRequestedSessionIdValid();
return sessionInValid;
}

Thanks in advance
Tag
10 years ago
Hi All,
Iam using Weblogic Workshop 8.1 and created domain.
I want to create an application with my own directory structure which is different from the proposed structure, where when you create an application,modules and libraries will be created automatically.
But i want to create in a different way.
Can i do that?if i can how do i do it?
Thanks
15 years ago
Hello
iam having problems with context path in server.xml file.i dont know where to change the context path(either in context root or context examples one).can somebody send me the details and full server.xml file.
i wrote a servlet called GreetingServlet and placed it in folder greeting ,placed it in c:/program files/java/tomcat 4.1/webapps folder.
thanks for your help in advance
tagore
15 years ago
Hi all...i started reading servlets and i have a question about deployment descriptor.i didnt undertand the concept of deployment descriptor.Do i need to write deployment descriptor(.xml) for every servlet program i write.somebody help me with this
thanks
tagore
15 years ago
Hi all
i completed reading basic java and cleared the scjp 1.4
i wanna go further with servlets,jsps.....all with j2ee stuff and i bought the following book:
Java 2 Enterprise Edition 1.4 (J2EE 1.4) Bible
by James McGovern, Rahim Adatia, Yakov Fain, Jason Gordon, Ethan Henry, Walter Hurst, Ashish Jain, Mark Little, Vaidyanathan Nagarajan, Harshad Oak, Lee Anne Phillips.
can u guys suggest me whether i can go with reading that book or should i opt another book.
thanks
15 years ago
sorry pretty much "new"
Hi all ...i just cleared my scjp 1.4 exam with just 55%,iam wondering if it is any good if apply for jobs.help me with this kind of stuff.
thanks
tag
15 years ago
thanks jeff..that was real nice reply and iam pretty much good to these forums.that might be the reason being impatient.
thank you
can somebody gimme an answer??.....
Hi....i just cleared scjp 1.4 with 55%.iam wondering if it is any useful if i apply for jobs.
thanks
Hello everyone....i just finished with basic java and cleared scjp exam.i want to proceed with the concepts of j2ee but i dont know any books to start with.can you guys suggest any book that covers everything like servlets,jsp,jdbc,ejb(i guess they are the important ones,i donno anything further).
thanks
15 years ago
Hello everyone....i just finished with basic java and cleared scjp exam.i want to proceed with the concepts of j2ee but i dont know any books to start with.can you guys suggest any book that covers everything like servlets,jsp,jdbc,ejb(i guess they are the important ones,i donno anything further).
thanks