Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 26th, 2008, 05:04 AM
Registered User
 
Join Date: May 2008
Location: , , .
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.
  #2 (permalink)  
Old May 26th, 2008, 05:41 AM
Imar's Avatar
Wrox Author
Points: 72,022, Level: 100
Points: 72,022, Level: 100 Points: 72,022, Level: 100 Points: 72,022, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,076
Thanks: 80
Thanked 1,587 Times in 1,563 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.
  #3 (permalink)  
Old May 26th, 2008, 06:15 AM
Registered User
 
Join Date: May 2008
Location: , , .
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.



  #4 (permalink)  
Old May 26th, 2008, 06:46 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
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
  #5 (permalink)  
Old May 27th, 2008, 05:36 AM
Registered User
 
Join Date: May 2008
Location: , , .
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.


  #6 (permalink)  
Old May 27th, 2008, 07:47 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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 hugh@kmcnetwork.com Javascript How-To 3 July 8th, 2004 04:59 PM



All times are GMT -4. The time now is 12:19 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.