Last post Jan 06, 2011 03:54 AM by sovitmittal
Jan 04, 2011 02:32 PM|Mazenx|LINK
hello all , I am creating an application with statemanager class that tries to find the best suitable way to save data and saves it , so it checks for cookies first then for session etc....however , I found that if cookies are disabled , session is also
lost as I am not saving it in the url , but I dont want that to happen...first I dont want to loose session , second I dont want my url to be huge with that ugly unique identifier appearing....so can someone tell me a solution that I can at least save sessionstate
without uri mode?? I was thinking in sql server but aint it slow to save session in sql server??? however I thought too , like i create a table for online users that can contain online session ids ?? please someone can guide me?? i need best solution .
Jan 04, 2011 03:15 PM|sachingusain|LINK
What I know of is that you can either have a cookie based session or a URI based session between browser and server.
I was thinking in sql server but aint it slow to save session in sql server???
What you are talking about here is the session state mode and this corresponds to how you save your session state at the server side (in-proc, out of state, SQL server).
So you have to choose between cookie based or URI option to establish a session state between server and browser. Now, at the server side you can choose any sessionstate mode - in-proc, state server, SQL server.
Jan 04, 2011 03:33 PM|Mazenx|LINK
Cant I like....load a session based on it's session id?? Am sure there is someway like that , as .net loads the session using session id that means i can create my on session object or something like that.
Jan 04, 2011 03:42 PM|karthic_85|LINK
session id preserved in form of cookies in client machine................
but you can have your own set of tables to store the values instead of using session object mapped to the logged in userID .but you have to clear allthose etc basically you need to maintain everything which is already implemented in sql server session.
Jan 04, 2011 03:51 PM|Mazenx|LINK
okay just a question far from this , can we hide the session id from url with url routing?
Jan 04, 2011 04:12 PM|karthic_85|LINK
no only two options are there,
session id in url
else already said you have to store a unique id for the logged in user in viewstate & hold the values in customized tables.
Jan 06, 2011 03:54 AM|sovitmittal|LINK
Session Id store at the Client side either cookies or URL, so if you want to store session Id in another place then make it your own Session class.