In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
237 [In-Portal CMS] Front End feature request N/A 2009-08-23 16:15 2009-11-13 14:02
alex  
alex  
normal  
closed 5.0.0  
fixed  
 
none 5.0.1  
0
0000237: Make session creation optional on Front-End
Currently on the front-end user session (tables UserSession, SessionData) is created no matter what user does. In particular simple site browsing even without form submission creates new session. When spider is indexing website, then session is also created, but spider isn't using cookies or javascript, that's why session is created for each indexed page. At the end of the day we have additional load on database server and a lot of expired session to clean up.

I propose not to create session in case, when all data, that is stored in session could be easily obtained during page load without consuming additional web server resources. This will help us in cases, when user is not logged in.
Additionally we should check how session (admin/front-end) is working when cookies are disabled in browser or one of 3 explicit session storage modes is selected (auto, query string, cookies).
Issue History
2009-11-13 14:02 alex Note Added: 0001150
2009-11-13 14:02 alex Status resolved => closed
2009-11-13 14:02 alex Fixed in Version => 5.0.1
2009-11-13 12:57 alex Changeset attached 5.0.x r12368
2009-11-13 12:57 alex Note Added: 0001103
2009-11-13 12:57 alex Status closed => resolved
2009-11-13 12:57 alex Fixed in Version 5.0.1 =>
2009-10-03 07:57 administrator Note Added: 0000769
2009-10-03 07:57 administrator Status resolved => closed
2009-08-24 01:10 alex Note Added: 0000356
2009-08-24 01:07 alex Changeset attached 5.0.x r12369
2009-08-23 16:56 alex Fixed in Version => 5.0.1
2009-08-23 16:56 alex Target Version => 5.0.1
2009-08-23 16:55 alex Note Added: 0000355
2009-08-23 16:55 alex Status active => resolved
2009-08-23 16:55 alex Resolution open => fixed
2009-08-23 16:55 alex Assigned To => alex
2009-08-23 16:55 alex Changeset attached 5.0.x r12368
2009-08-23 16:15 alex Changeset attached 5.0.x r12367
2009-08-23 16:15 alex New Issue

Notes
(0000355)
alex   
2009-08-23 16:55   
Fix committed to 5.0.x branch. Commit Message:

1. Fixes 0000237: Make session creation optional on Front-End
2. All session id storage modes are fixed to be compatible with fake sessions.
(0000356)
alex   
2009-08-24 01:10   
There are still some things to to:
1. session will be created, when:
- viewing product detail page (<inp2:p_AddToRecent/> tag)
- viewing link/article/topic detail page (<inp2:RegisterHit/> tag)
- subscribing to site mailing (SubscriberEmail session variable)

2. "Browse Site" functionality is broken, when cookies are disabled in browser, because admin sid is not given in url to front-end, so it could properly load admin session for permission checking.
(0000769)
administrator   
2009-10-03 07:57   
Closing issues from 5.0.1 version, because version was already released.
(0001103)
alex   
2009-11-13 12:57   
Fix committed to 5.0.x branch. Commit Message:

1. Fixes 0000237: Make session creation optional on Front-End
2. All session id storage modes are fixed to be compatible with fake sessions.
(0001150)
alex   
2009-11-13 14:02   
This task was resolved multiple times, because of themes were moved into separate modules. I will revert issue status and fixed in version fields back to normal manually.