• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

Most secure way of passing information between pages with asp.net 2.0

Hi,

I'm wondering what is the most secure method of passing information between different pages. I can pass info using the QueryString but everyone can read what is in the URL. Is there a better way. I suppose I could encode the information then put it into the querystring but it looks messey. Any better solutions?

Thanks
J
0
levyuk
Asked:
levyuk
  • 2
  • 2
  • 2
1 Solution
 
aki4uCommented:
use Session
0
 
laotzi2000Commented:
I agree.

The most secure way should be one that the information is only contained on the server and never pass to the client.
Session can achieve that.
0
 
levyukAuthor Commented:
How can I integrate that into a link? I want people to be able to click a link and show information about say a certain user.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
aki4uCommented:
the same way you use Request...just replace it it with Session
0
 
levyukAuthor Commented:
Ok that makes sense, now to make it worse :)

Within my page I get a list of users in the same role as the current user. I output a link so that you can click on the users name and see their profile. The code to do this is:

        foreach (string user in Roles.GetUsersInRole("Members"))
        {
            Label1.Text += "<a href='viewProfiles.aspx'>" + user + "</a><br />";
        }

I don't understand how to make it so that when I get to the viewProfiles.aspx page I will be able to get the correct user name that was clicked.
0
 
laotzi2000Commented:
In this case, the information(I suppose it's the user name) is passed from client to server.
To secure that, you have to use SSL or something alike to encrytp it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now