logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Joe Payne2  
#1 Posted : Tuesday, August 16, 2022 11:06:09 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
We want to implement CloudFlare True-Client-IP in Able so CDN-protected sites can see the origin IP for orders, page tracking etc. I can't find where AbleContext.Current.Session.UserHostAddress is actually set. I assume it's in the core Able HttpHandler which full source does not include.

Is there a place in the request processing flow where we can parse the request header and update the AbleContext.Current.Session.UserHostAddress value?

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

Jay  
#2 Posted : Tuesday, August 16, 2022 3:48:04 PM(UTC)
Jay

Rank: Member

Groups: Authorized User, Developers
Joined: 11/12/2018(UTC)
Posts: 25

Thanks: 1 times
Was thanked: 4 time(s) in 3 post(s)
Not sure, but maybe Application_BeginRequest function in Global.asax?
ray22901031  
#3 Posted : Tuesday, August 16, 2022 4:20:47 PM(UTC)
ray22901031

Rank: Advanced Member

Groups: Authorized User, Developers
Joined: 2/17/2019(UTC)
Posts: 827

Thanks: 3 times
Was thanked: 13 time(s) in 13 post(s)
We had this implemented late last year, I believe the file that you need would be the SessionFacacade.cs under CommerceBuilder.

If you require assistance with the code, please let me know.

-Ray
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.