Top use cases for using Sessions in Java web application
I've been always trying to avoid using Sessions. I've used spring security or other ways of having user logged in the application, which is I suppose the major use case for using Sessions.
But what are the other use cases ? Could you please make a list of those most important ones ? How come that I've been able to develop even complicated applications without using Sessions?
Is it because I'm using spring-mvc and using Sessions is practically not needed except the login stuff ?
EDIT: Guys this question was asking for use cases... Most of the answers explains what are sessions for. If we summarize some usecases, we can say for sure, when to use database or sessions for maintaining conversation state... Don't you remember any concrete scenarios you needed sessions for? For past years :)
for instance some conversational state may become persistent after some point / event. In this case I'm using database from the beginning.
I'm searching the alternatives for developing a java web application to calculate land values based on some variables with a visual presentation of a map. Since the data that i have is ESRI shapefiles
I am attempting to run an Eclipse RCP application using Java Web Start. However, I encounter this error after the application is downloaded and run: JNLP JREDesc in Component ignored: null After that,
I am new to Java Web. I am using netbeans 7.0.1 and glassfish 3 to develop a web application. I am almost through with all data input and Now I want to create reports & graph. Requirement is to cr
I've made an application with Java which is a game. I'm wondering if it is possible to put this game on html page or similiar in order to play it with a webbrowser. The GUI has been built with JFrame,
I can not find any real life example of glReleaseShaderCompiler usage. When would I use glReleaseShaderCompiler ? From the khronos description it states This is a hint from the application that addit
I would like to know what generic requirements are there to have Eclipse headless application. Also what are the different generic use cases which will be helpful to have headless application. Regard
I cannot use the selenium IDE as i'm not allowed to use firefox. The website that i need to test doesnt have ID's for every tag. So i cannot even use that. My question is, how else do i use the locato
I'd like to secure access to resources in my web application, so I authenticate my users using the standard mechanisms and use server-side sessions to preserve the authenticated state. I'd like to dep
I usually write use cases for all the software that I develop. For each use case I generally write a controller which directs the flow (implements a use case). I have recently started developing web
We have this scenario where an application on a particular server using Tomcat 5 (JDK 1.4) can successfully connect with a web service using HTTPS and the same application using Tomcat 7 (JDK 1.7) on
I would like to know what are the equivilents of these features of C# asp.net compared to a similar java built web application. Would a java based web application still be created in this fashion: we
I have a java web application using JSF, Spring and Hibernate frameworks. I want to write a batch program (with main() method) processing some data in the related database and I want to use some Sprin
I am using java in spring MVC framework for querying, my query is showing 600+ results but I only want the top 10 results. This is what I have so far: public interface ProductRepository extends SolrC
I am writing a code for a web application using Java and Apache Tomcat. The web application involves an authentication system. My question: is there any way that I can execute a certain code every tim
I have a Java web application running on Tomcat 7 that appears to have a memory leak. The average memory usage of the application increases linearly over time when under load (determined using JConsol
I am using Selenium web driver 2, and want to keep only one window across all test cases and avoid the new windows created by each test cases, so that I can work on consistent data on the web. I've do
I'm a JQuery programmer looking to get into using AngularJS for my next project. After reading this excellent answer about how to think in Angular instead of including and using JQuery, I wonder wha
We are creating a web app where we need to have concurrency for a few business cases. This application would be deployed in a tomcat container. I know that creating user defined threads in the web con
I developed an ASP.NET web application that is installed on a live IIS 7.5. The web app uses http sessions to pass parameters between pages for logged in users. This works great on my development ma
I have been using IntelliJ IDE (version 5.1) with Tomcat server (version 5.5) to build my Java web applications. I'm now trying to migrate my project to Eclipse IDE. When I run my web application from
I am inspecting a Java process in Linux using top -H However, I cannot read the name of the thread in the COMMAND column (because it is too long). If I use 'c' to expand the full name of the proces
We are working on a Java EE Web Application, and the people from marketing need some really detailed stats for our site. Something similar to Google Analytics, gathering the user's information, and th
Is it possible to use Java to build a web browser like Internet Explorer that will open all the web pages and display all the contents?
I'm building an android application that uses a web service (just php scripts) to query a mysqldatabase. For the moment there isn't any authentication system but I'd like to create php sessions after
We have a requirement on our project, where we need to maintain a sort of history of changes that are made to certain Entities in the Application. The the Application is a Java Web App based on Struts
when you use the flash object to pass a message to the next view, does it use sessions for this? i.e. in a multi-server environment, this will cause issues
I've been looking through examples online about charting libraries to work with in a Java Web Application but they all keep trying to implement some form of php to get the data before the chart is pro
I want to design a web application (using java, spring, hibernate with mySQL). The data size is very big. So for every client I wish to create separate DB either on same server or on different nodes.
How to keep a Messagebox.show() on top of other application using c# ??
Most Java web application frameworks use server-side session objects to store session state. Because this complicates scaling, I'm looking at frameworks that implement a shared-nothing architecture, e
What is the best (or a good way) to unittest java web applications, that is not using an existing framework such as struts, stripes or spring? Is using tools like httpunit or htmlunit good? Which is
all, I use Fiddler for developing and debugging Web apps, and I find that random stuff shows up in the list of sessions after I turn off Capture Traffic. It's perhaps a few items every ten or fiftee
I have a requirement of implementing maps i.e GIS in an existing java web application which i have developed using struts framework and has been developed in Eclipse Ganymede IDE. I am completely new
I know session.invalidate() releases the httpsession. But when I monitor the container memory, it does not come down. Here is what I am observing - Login (My application creates a session) User perf
PHP use browser cookie PHPSESSID to store the session value let say 12345 and it does by creating a file for each session on server by default (session_12345.txt ) . What if the request is coming from
I would like to use Google Web Toolkit's GUI in common java application instead of Swing. How could I implement that? Could anybody show the simpliest example how to do this?
I have a basic web application written in Java, running on a tomcat on my localhost. Currently it's just a simple application with a single servlet to which I access from my browser. I want to write a
I've not built a Java web application before, but I have it complete enough to test and Maven is building my WAR file just fine. It is a multi-module Maven project and the dependent modules all have t
I am looking to deploy a Java Web Service without needing a server application. I know that I can deploy C# WCF services by hosting the executable file (ServiceHost class in C#), but can I do a simila
Im novice even in python and Im trying to write fast code with the multiprocessing module of python. Actually my question is very general: I'd like to know different ways of using multiprocessing and
I have web service url that I need to test its functionality using Java Web Client. I've read some in google concerning simple web application using struts framework. Anybody has simple web applicatio
I am working on Spring , Hibernate and Restfull webservice based java application. I want to use some external API's. (For optimization). Can anyone please recommend me some API's which are are used i
we are developing an simulator application where user can create simulation and run the logic. now in second phase of our project we required hardware triggering using web based application . i requir
Let's share Java based web application architectures! There are lots of different architectures for web applications which are to be implemented using Java. The answers to this question may serve as a
I have to implement one web2py application which has to access java code (which has code to connect to the remote machine) but not sure whether we can do it in web2py or not.My PC has Java 1.6, Python
are there any things that once can do ignorantly that can prevent a java web application from being cross platform? (windows/linux/mac) Tools I am planning to use are java/spring framework/hibernate
I´m trying to get the project context path in java web application. my proyect is located into D:\GED\WSysGED, I want to get that path. I found two ways to do it the fist one is using this instructio
How to get any http session by id or all currently active http sessions within web application (Java 2 EE) in an elegant way? Currently I have a WebSessionListener and once session was created I put i