Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to pass values between asp.net web pages? and what is the most secure way?

user-image
Question added by Mahmoud Manaa , Network Engineer , Zain - Kuwait
Date Posted: 2013/10/01
Osama Gamal
by Osama Gamal , Software Consultant , Ministry of Interior

Many ways:

1- Query strings pramaters and this way not safe as hackers can use it for gtting you data using hacking cripts.

2- Session variables: this way is more safe as it is most of the time used in server side code.

3- Cookies.

4- Application global variables.

 

Ahmed Saed Kamel
by Ahmed Saed Kamel , Web Developer at CAT , Creative Advertising Thinking

you can use the cookies URL query stringSessions the most secure is the session cause the user can't erase or delete it  or modify in it you gove your application the session timeout 

Rameez Ahmed Sayad
by Rameez Ahmed Sayad , .Net Consultant , Proximus Luxembourg

Same Domain -ReadOnly Cookies with encrypted values along with AntiXsrf Token to prevent session hijacking.

Cross Domain - DataBase with minimal priveleges required. The web pages that need to read the data should only have READ rights. Encyrption depends on the sensitivity of data.

Houssem Gharsallah
by Houssem Gharsallah , Software Architect , NOMD Technologies

I recommend using Session variables along with Global variables (declared in Global.asax). They are server side methods so your data is safer than in query strings or cookies which are client side.

Mohammed Al-shdaifat
by Mohammed Al-shdaifat , Solution Development Leader , Majorel Saudi Arabia

you can pass it by query string  with using encryption methods

Mohammad Masadeh
by Mohammad Masadeh , SharePoint Lead Developer , Port Customs And Freezone Corporation Dubai

there is many way to pass values : 

1- QS 

2- session 

3- cookies 

4- profile 

for me the most secure way is profile

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.