sessionclient-sidesession-hijacking

Can Sessions be manipulated by the user clientside?


Background story: We run a website with thousands of users and a handful of admins. Some of these admins don't need all-access to the website, so I want to restrict their access by giving them individual permissions.

My plan is to set a Session on user login with the users perimissions, if given any. However, I'm concerned that this might be an unsafe action.

Can a Session be manipulated by a user client side? In this case a regular user could gain access to the admin features if they knew the permission names and set a Session for themselves.

I found some related questions on Stackoverflow, but they didn't give give me enough information on the subject.


Solution

  • You are already providing the login for admins and users so save type of permission they have and give them rights to modify data according that..And as long as your session state is encrypted it is very hard to manipulate on client side. If you have concern about security of your existing session and cookies here is link to make it secure. Secure your Session

    This is full Article how to make your session and cookies secure...