ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل Mahmoud Manaa , Network Engineer , Zain - Kuwait
تاريخ النشر: 2013/10/01
Osama Gamal
من قبل 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
من قبل 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
من قبل 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
من قبل 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
من قبل Mohammed Al-shdaifat , Solution Development Leader , Majorel Saudi Arabia

you can pass it by query string  with using encryption methods

Mohammad Masadeh
من قبل 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

المزيد من الأسئلة المماثلة