Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2008, 05:04 AM
Registered User
 
Join Date: May 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing password in in querystring

Hi Experts,
In my application..assume a user entered in to our site by providing credentials.
After that if he want to redirect to forum page of our site...he shold click on Forum Link Button.Then HE will be redirected to Forum page.In that page i need to display the user name..like "welcome XYZ".(Note that in forum also user should authenticated)

So i am sending username and password(i am sending password in encoding format i.e.,irl encode) through querystring.
But in forum some problem is coming while decoding the password(url decode) and authenticating it.So it is not showing the username.instead it is showing "welcome Guest"...

So how can i decode the password...or is there any other way to do this..its vvv Urgent...

Thanx in Adv.
 
Old May 26th, 2008, 05:41 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

If with "in encoding format" you mean hashed (as you are referring to in the subject), then you can forget about it. Hashing is a one way algorithm, so there's no way to convert it back.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 
Old May 26th, 2008, 06:15 AM
Registered User
 
Join Date: May 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks For Answer.
Again i am explaining my problem.

i have a password.i am encrypting that one and and sending this one through query string(url encode).

in Forum page i am urldecoding the password and decrypting this one.so i am getting password's original format.
i am comparing this one with database password.if it is matched the username will be displayed in Forum page.

This is the scenario.But when decrypting,some change is occuring and i am not getting original password.so i am unable to display username in forum page.

So how can i do this?Is there any other way to do this.(except using cookies)

Thanx in Adv.



 
Old May 26th, 2008, 06:46 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Why are you passing anything on the query string? The typical scenario for doing a login is to handle the login procedure on the page that the user entered their login information. The process would normally be triggered by a button click handler and process directly on that page instead of passing off the information to another page.

-Peter
compiledthoughts.com
 
Old May 27th, 2008, 05:36 AM
Registered User
 
Join Date: May 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Mr.Planoie,
U did not catch my point.I need to verify the credentials in Homepage as well as in Forum page of my application.
So...if any user logged in to the application,he need not to login again in Forumpage.So that i am sending username and password through URL as querystrings.

If i use cookies there is some problem..so i need to achieve this through Querystrings only.How can I?(Note:In my application,Forum was developed seperately.So unable to use Session also)
Plz Help me...


Thanx.


 
Old May 27th, 2008, 07:47 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

It was not clear from your original posts that you were dealing with 2 separate applications.

What are you using for password/username encryption? Can you post the code you are using?

Generally, you don't need to UrlDecode values that come across on the querystring.

-Peter
compiledthoughts.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing data via querystring LanceRoss Beginning VB 6 3 July 25th, 2008 12:20 PM
Passing more than one querystring in the site map kaushikpulpa ASP.NET 2.0 Basics 1 April 20th, 2007 08:08 AM
Passing a querystring value that contains '&' jfrizelle Classic ASP Databases 3 March 20th, 2006 09:27 PM
Passing URL in a Querystring [email protected] Javascript How-To 3 July 8th, 2004 04:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.