why param by Url and not by Session ?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/29/2008 5:17:50 AM
Gravatar
Total Posts 16
Jesuite

why param by Url and not by Session ?

Hi Joe,

Can you tell me why you those to forward all params by Url and not by Session ? For exemple you do those to pass pageId and moduleId by Url and not by Session ; there is certainly a good reason you do this. It seems like params by session don't work fine ?

Thank you.

G.

4/29/2008 6:39:40 AM
Gravatar
Total Posts 18439

Re: why param by Url and not by Session ?

Use of session variable is a scalability killer because it consumes server resources (ie memory). Once you put an object in session, the memory required for the object stays in use until the session expires. By default this is 20 minutes after the last request. If one uses session variable at all one should be very judicious about what they use them for and why.

So for example if your site is getting trolled by a lot of bots and scripts they generate requests and they don't accept a session cookie so every request is a new session. So by a lot of requests it can use up all the available memory causing a denial of service for real users.

I recommend avoid use of session variables as much as possible. Only in rare cases can it be justified in my opinion. Most things can be done easy enough without them.

Best,

Joe

4/29/2008 8:20:15 AM
Gravatar
Total Posts 16
Jesuite

Re: why param by Url and not by Session ?

Ok, this is fine.

Thank you.

You must sign in to post in the forums. This thread is closed to new posts.