|
|
| Author |
Message |
|
| Guest |
Posted: Tue Oct 20, 2009 11:43 am |
|
|
|
Guest
|
Hello
By way of background, my current job involves programming J2EE applications. |
|
|
| Back to top |
|
| Guest |
Posted: Tue Oct 20, 2009 1:43 pm |
|
|
|
Guest
|
| IMO, distributed sessions in the servlet container world are more of a vanity. Most real world applications use database backed sessions anyway and in reality you can't let the servlet container manage distributed sessions - they simply don't scale very well. Plus, sessions are not really part of HTTP transport, so, I don't think it's wise to carry that code as part of core web server codebase. In any case, creating/managing sessions is pretty easy anyway. |
|
|
| Back to top |
|
| Guest |
Posted: Tue Oct 20, 2009 1:46 pm |
|
|
|
Guest
|
On Tue, Oct 20, 2009 at 7:40 AM, David Hayek <dhayek@swbell.net (dhayek@swbell.net)> wrote:
Quote: Hello
By way of background, my current job involves programming J2EE applications. |
|
|
| Back to top |
|
| Guest |
Posted: Sat Oct 24, 2009 4:02 pm |
|
|
|
Guest
|
Steve
Thanks for responding so quickly. |
|
|
| Back to top |
|
| Guest |
Posted: Sat Oct 24, 2009 4:24 pm |
|
|
|
Guest
|
I think most of the issues arise because people have been trained to think of sessions as something special. Session is just another piece of data in your database. Read it when you need. Write it once you're done. It's just another table and another POJO entity.
In functional world, you might write few functions to make it easy to extract from cookie,read and write the session.
That's pretty much it.
Redirecting to a login page for missing sessions is just another facet of your application. It might be an oft repeated pattern but still has nothing to do with web server and the container. Just abstract it away in an erlang module and reuse the module in all your apps.
Let's KISS !
On Sat, Oct 24, 2009 at 11:59 AM, David Hayek <dhayek@swbell.net (dhayek@swbell.net)> wrote:
Quote: Steve
Thanks for responding so quickly. |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|