we no data is sent with HTTp request in case of web storage then , since HTTP is stateless protocol how will the server will know about the client, or do i need to send some data in HTTP request , if yes then how come it is different then cookies in this case , pls answer this asap ,
thank you in advance
Loading
nidhi singhPosted Oct 26, 2012, 4:07 AM
My question was :how communication with server is done , when application is developed using web storage , state maintainence at server how is done , because cookies where used to maintain state , if now no cookie then how the state will be maintained at server.
Because any way we are using HTTP protocol in both case , so to make it state full , what need to be done at server , to identify user that , i m the same user who has already logged in
... i need the answer of this question in detail
pls
Shivanand ArurPosted Oct 26, 2012, 3:58 AM
Thanks!!!
nidhi singhPosted Oct 26, 2012, 3:58 AM
Mean how shud i contact then
i need to chat with some one to clear my doubts
Shivanand ArurPosted Oct 26, 2012, 3:50 AM
nidhi singhPosted Oct 26, 2012, 3:46 AM
or may tommmorrow
pls let me know
need to chat .. have some doubt which are still not clear and on monday is my presenation on the same topic
And replying and waiting for response on this site , i cnt clear my doubts
pls help me
nidhi singhPosted Oct 26, 2012, 3:42 AM
==============================
My gmail ID - aru
ur email id is [email protected] ??
can u pls add me mine is [email protected]
Shivanand ArurPosted Oct 26, 2012, 3:33 AM
nidhi singhPosted Oct 26, 2012, 3:23 AM
if u r online then pls send me ur gmail id
Shivanand ArurPosted Oct 26, 2012, 3:15 AM
(Copied from the Link given ablove)
Passing data from Web Storage to server
Unlike Cookies, Web Storage data is not passed between the client and server with each and every request. If you wish to send the Web Storage data to the server you must device a programmatic way to do so such as a hidden field or an AJAX call. As far as ASP.NET web forms are concerned one neat way is to call a Web Service or a WCF Service from the client script and pass the data to the server. The server can then examine and process the data and may store it into a database.
In the example discussed in the next section, you will use jQuery to call Web Methods. The Web Methods perform two functions - they fetch data from the server so that client can render it as required and they persist the Web Storage data in SQL Server database. While dissecting the example, our focus will be on Web Storage related functionality and we won't go into the details of making AJAX calls using jQuery. (Check the example)
nidhi singhPosted Oct 26, 2012, 2:58 AM
communication with server , when application is developed using web storage , state maintainence at server how is done
pls answer this
pls :)
Shivanand ArurPosted Oct 26, 2012, 1:50 AM
http://dotnetslackers.com/articles/aspnet/Using-HTML5-Web-Storage-in-ASP-NET.aspx
Sorry if I confused you!!!
nidhi singhPosted Oct 26, 2012, 1:34 AM
sorry but i am not yet clear.
Web Storage has come as a replacement to cookies , and session cookies are sent with every http request to server for state maintainence.
If web storage is replacement to cookies then , when i m using web storage , then in replacement to cookie what i need to send to server for state maintainence .
As u say for that i need state management traditional approach .
cookie is a part of state management , so what does this mean here ?
Does web storage only has a role to save maximum data on local , in order to reduce hits on server , for the transactions where we can manage with the data on local system ?
and finally when we want the changes to reflect on server then we use same old approach.
pls reply .. i need to clear this doubt.
Thank u :)
Shivanand ArurPosted Oct 26, 2012, 1:14 AM
You can learn more about the State Management here...
http://www.c-sharpcorner.com/UploadFile/78d182/Asp-Net-state-management-techniques/
Please mark the answer as accepted, if it helped!!!
Thank you.