Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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

user-image
Question ajoutée par Mahmoud Manaa , Network Engineer , Zain - Kuwait
Date de publication: 2013/10/01
Osama Gamal
par 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
par 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
par 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
par 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
par Mohammed Al-shdaifat , Solution Development Leader , Majorel Saudi Arabia

you can pass it by query string  with using encryption methods

Mohammad Masadeh
par 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