Reputation: 19591
I was thinking of a web project whose architecture would be something like this,
Website would have two layer
Data Access layer
It would be a project containing webservices & will work like a mediator between presentation layer and database.
Presentation layer
It will be a simple website build from HTML, JavaScript and CSS only, and will communicate with data access layer to get and/or post data to and from the database.
Now Question : Is that possible to create an Asp.net session like functionality in my presentation layer using just HTML, JavaScript, Cookies came into my mind first of all but it's not much secured do any one has more relevant, secure & logical solution for this one ?
Thanx in advance.
Upvotes: 0
Views: 227
Reputation: 5553
It doesn't matter if you use HTML or dynamic pages. Depending of what server side environment you use, every first time that the client requests the page, the session is created. This means that even if you are using AJAX to update page content, anyway AJAX will request the server and will have the ability to use Session object on server. In ASP.NET WebServices (That AJAX will call them) you may configure WebMethod to allow or to not allow of using Session.
Upvotes: 1
Reputation: 135
I guess what you mean might be REST and Ajax 's functions. Presentation layer is the view, data access layer is the controller, the model is where the database will accessed, and controller will call the function defined in the model
Upvotes: 0