• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 243
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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