Getting started with Member profiles (frustration) Options
mortenbock
Posted: Thursday, January 10, 2008 9:30:20 AM

Rank: Addict

Joined: 7/19/2006
Posts: 811
Location: Århus, Denmark
I'm not sure if this applies here, but I know Umbraco has had problems with handling members that are logged in using session instead of cookies. For example in this issue on codeplex:
http://www.codeplex.com/umbraco/WorkItem/View.aspx?WorkItemId=12193

I've been looking through the source, and I found that the session part is not totally implemented.

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

kalpa
Posted: Sunday, January 27, 2008 5:27:39 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 496
Location: Göteborg, Sweden
I think I might have found a very simple solution to the problem that nothing happens on logout. At least when you're using session based login...

I modified the logout function to this:

Code:


protected void LinkButtonLogout_Click(object sender, EventArgs e)
{
   Member.ClearMemberFromClient(Member.GetCurrentMember().Id);
   Session.Clear();
   Response.Redirect(Request.RawUrl, true);
}



I have tried this with IE6, IE7, Safari 3 and FF2 and it seems to be working as expected.

One possible drawback of this might be that this session might appear to be two different ones in your website statistics...

// ; ) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
ni5ni6
Posted: Monday, January 28, 2008 4:09:51 PM
Rank: Enthusiast

Joined: 12/18/2007
Posts: 34
Kalle,
Session.Clear() certainly did the thing!!! ;)
Great, Thanks!
Nikola
Ig_p118
Posted: Tuesday, February 12, 2008 11:41:22 AM

Rank: Fanatic

Joined: 7/21/2006
Posts: 315
Location: Salerno - Italy
Niels Hartvig wrote:

If you promise to write a book, I'll update the membercontrols project tonight with my original showprofile usercontrol added (just updated to a more semantic, easier to style markup of course).

Deal or no deal ;-)

/n


There is a good tutorial on membership control and how customize it?


Red Consulting s.a.s - Umbraco from v1.0
psterling@homax
Posted: Tuesday, February 12, 2008 3:42:38 PM

Rank: Fanatic

Joined: 10/30/2007
Posts: 225
Location: Bellingham
Biagio -

There's an upcoming book about this:

http://umbraco.org/documentation/books/create-an-editable-member-profile-page-with-member-controls

Also, the member controls are rather straightforward once they're installed. I recommend installing and having a look, if you haven't already.

-Paul

motusconnect.com :: level-2 certified :: MVP 2008/2009
Ig_p118
Posted: Thursday, February 14, 2008 11:23:11 AM

Rank: Fanatic

Joined: 7/21/2006
Posts: 315
Location: Salerno - Italy
Paul Sterling wrote:

Biagio -

There's an upcoming book about this:

http://umbraco.org/documentation/books/create-an-editable-member-profile-page-with-member-controls

Also, the member controls are rather straightforward once they're installed. I recommend installing and having a look, if you haven't already.

-Paul


It's empty.... is there another tutorial?

Red Consulting s.a.s - Umbraco from v1.0
Users browsing this topic
Guest


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.