Masking variable data in an url?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
spacebiscuit
Forum Contributor
Posts: 390
Joined: Mon Mar 07, 2005 3:20 pm

Masking variable data in an url?

Post by spacebiscuit »

Hi,

I am sure this is a common question but I cannot find the answr on the net anywhere.

Is it possible to hide or encrypt variable data passed in the url. I have several veriable's whose data I want to hide or mask from the user.

Thnaks in advance,

Rob.
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post by dude81 »

I guess this could help you

http://sg.php.net/base64_encode
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Is it possible to use sessions for this?
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Post by impulse() »

Would it not be possible to use _POST?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

impulse() wrote:Would it not be possible to use _POST?
POST is just as viewable to the end user. Just takes 2 more sec of digging :wink:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Sessions, or better yet databased session data tied to a unique ID. Then none of the information is passed by forms or URI.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

You'll need to give us a case example before we can really recommend anything.
Post Reply