There is a rich web app with login form. Logged in user should be able to send some post request to server database, which modify database records. How do I track in the server if user has role to add/modify record in server database? Should I send username, password, data to place into db every time user wants to modify db or should I use sessions instead of resending username/password? Sorry, I haven't used sessions before, so I am not comfortable with them... But as I see they are the way to go in multi page web apps, but will they make my life easier if I use them in one page web app? Or should I just resend username/password on every post request to server database?
Is using sessions for single page rich web app an overkill?
180 views Asked by Nivellyr At
1
There are 1 answers
Related Questions in SESSION
- Multiple Processes, Multiple Processors, Single Priority Queue - Java Thread-Safe and Concurrency -
- Securing routes with sessionStorage in NextJS
- Cant handle Session's cookie when Safari/iOS
- Quart_Sessions Redis deletes keys and create backups instead
- I cannot get ID from session in GET method in Next.js 14
- I am new to flutter, just trying to set and get logged in user's session but maybe I am missing something
- I'm going nuts with Heroku session management issues
- Have a problem with get session in nextjs
- Session custom property getting undefined when calling Node js API from Javascript fetch
- Best Approach for Preserving User Input Across Blazor Pages in ASP.NET Core Application with User-Specific Data Storage
- spring security + form login + redis session storage -> keep coming out anonymous User
- Check user login in backend
- Next.js Middleware for Session Authentication Redirects: Errors Encountered
- Ansible prompt "No existing session" in manual executing the playbook
- Running a program on different computers with different users that access a central database simultaneously - VB.NET XAMPP/MySQL
Related Questions in RICH-INTERNET-APPLICATION
- can Rich Internet Application run with whole browser uninstalled?
- InternetReadFile not getting entire file
- Is using sessions for single page rich web app an overkill?
- Java framework to build Rich Web Apps for IE8
- browser based Image captioning tool that is open source?
- web api or controller for client side interaction
- Using maqetta as frontend for php app
- What is the difference between a "smart client application" and "rich Internet application"?
- Tool for building WebML (RIAs extended) diagrams?
- Are there any decent .NET MVC frameworks for building rich AJAX applications?
- Axis labels are not visible of an chart in ExtJS 4
- Is there any framework for rich web clients on top of html/css/js?
- nested quotes in haml
- Deploying Web APP (Client side) as Desktop Client
- Many to many relationship events with backbone.js
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
If you are doing this only for username and password, do them every time. If you are using a standard HTTP authentication type, it does this - it sends the login credentials on every page access. If there is more information you need passed, and this information is to be used repeatedly on multiple accesses to the web page, look at using a per-session cookie instead.
Alternitivley, if it is easier - I have seen some web apps use a session (or longer) cookie for authentication information. In-fact, some Apache modules themselves do this.