473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Membership Settings!

Hi All, I have a website site (asp.net 2.0) which welcomes both anonymous
and logged in users. I am doing some eCommerce operations in the website.
For the logged in users I take use of the Profile and UniqueID for doing the
transaction for their orders, what should I do for anonymous users?
How can I allow anonymous users to login at a certain point during the
checkout process and retrieve their profile?

Any suggestions?

TIA
Feb 5 '07 #1
4 1171
On Feb 5, 8:37Â*pm, "Vai2000" <nos...@microsoft.comwrote:
Hi All, I have a website site (asp.net 2.0) which welcomes both anonymous
and logged in users. I am doing some eCommerce operations in the website.
For the logged in users I take use of the Profile and UniqueID for doing the
transaction for their orders, what should I do for anonymous users?
How can I allow anonymous users to login at a certain point during the
checkout process and retrieve their profile?
For example: use Form authentication, make eCommerce using Session and
check on Checkout form

if (System.Web.HttpContext.Current.User.Identity.IsAu thenticated)
{
.... checkout ....
} else {
Resonse.Redirect("login.aspx");
}
Feb 5 '07 #2
On Feb 5, 10:59Â*pm, "Alexey Smirnov" <alexey.smir...@gmail.comwrote:
On Feb 5, 8:37Â*pm, "Vai2000" <nos...@microsoft.comwrote:
Hi All, I have a website site (asp.net 2.0) which welcomes both anonymous
and logged in users. I am doing some eCommerce operations in the website.
For the logged in users I take use of the Profile and UniqueID for doing the
transaction for their orders, what should I do for anonymous users?
How can I allow anonymous users to login at a certain point during the
checkout process and retrieve their profile?

For example: use Form authentication, make eCommerce using Session and
check on Checkout form

if (System.Web.HttpContext.Current.User.Identity.IsAu thenticated)
{
Â* Â* .... checkout ....} else {

Â* Â* Resonse.Redirect("login.aspx");

}- Hide quoted text -

- Show quoted text -

Or, it can be done in Web.config (I think it's better):

<location path="Checkout.aspx">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>

<system.web>
<authentication mode="Forms">
<forms name="eCommerce" loginUrl="login.aspx" protection="All"
path="/" />
</authentication>
</system.web>

You will need login.aspx to login the user

Feb 5 '07 #3
There is a specific class and methods to migrate an anonymous user once they
get logged in but I don't recall much more and suggest googling...

migrate anonymous user site:msdn2.microsoft.com

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=-...8&z=17&l=0&m=h

"Vai2000" <no****@microsoft.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Hi All, I have a website site (asp.net 2.0) which welcomes both anonymous
and logged in users. I am doing some eCommerce operations in the website.
For the logged in users I take use of the Profile and UniqueID for doing
the
transaction for their orders, what should I do for anonymous users?
How can I allow anonymous users to login at a certain point during the
checkout process and retrieve their profile?

Any suggestions?

TIA


Feb 6 '07 #4
On Feb 6, 6:34 am, "clintonG"
<csgallag...@REMOVETHISTEXTmetromilwaukee.comwrote :
There is a specific class and methods to migrate an anonymous user once they
get logged in but I don't recall much more and suggest googling...
FormsAuthentification.RedirectFromLoginPage?

Feb 6 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Philipp Lenz | last post by:
I'm completely new to ASP.Net 2.0 and I'm baffled about what to do to get this to work. FYI, I'm not new at this, I've used asp.net 1.1 for allmost 4 years now. I'm running a development...
2
by: John | last post by:
Hi I was working fine with create user wizard and the default membership provider. I have now customised the membership provider as per attached web.config. The create user wizard picks up the...
9
by: Paul Keegstra | last post by:
Hi, I am currently working on an asp.net 2.0 web site that is a replacement of a classic asp web site. The current web site uses a Commerce Server 2002 database for storing user information. ...
3
by: Dan Sikorsky | last post by:
Can I use SQLServer 2000 with ASP.NET 2.0 instead of SQLServer 2005, and use the .Net 2.0 Membership functionality? I've setup my Login page, controls, etc., and now it's time to use the Web...
1
by: Axford | last post by:
Hello, I am trying to implement my own custom provider for memberships, basically only id/pwd (no roles). I use the new login web control (I am using asp.net 2.0 and VS2005). In web.config I...
5
by: Vishal Gupta | last post by:
Hi This is Vishal this side.I have been trying to create a new sample website using the new Membership Provider Class. Now when I try to a create a new website and then hit on the Website...
4
by: Pony Tsui | last post by:
I was install the starter kits CLUB, and created a CLUB WEB SITE, this application use the MemberInfo table in club.mdf to store the membership'data, but i can not find out where to define or...
3
by: Andy Fish | last post by:
Hi, I am trying to figure out how to use asp.net membership providers for my vs2005 web project. unfortunately the only walkthrough in MSDN uses the "Web Site Administration Tool" to configure...
2
by: Jonathan Wood | last post by:
In my application, new accounts must be created by an administrator--users will not create their own. Ideally, the user could then log on and specify their own password question and answer, and the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.