Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 13 of 13

Thread: Page after login

  1. #1
    virtualtap is offline Senior Member
    Join Date
    May 2007
    Posts
    171

    Default Page after login

    Hello I need to change the page that a user is forwarded too after a user logs in to a custom page I have created. Anyone know how I can do this. I change the url on link 332 of the login.aspx.cs but apparently that is not the correct way because it is still going to the default store page.

    Thanks
    MSX

  2. #2
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    Are you referring to the home template? If so, if you've created a customized template already and wanted to use it instead of the default one we had you can set appconfig: HomeTemplate to that filename (e.g. hometemplate.ascx).

  3. #3
    virtualtap is offline Senior Member
    Join Date
    May 2007
    Posts
    171

    Default

    Hello,

    I know what you are saying, but that is not what I need.
    I have a website where the store is in a sub directory but the we use the login and role provider that the store uses. I have a page set up that is not in the store, and I need users to be forwarded to that when they first login.

    Thanks
    MSX

  4. #4
    dvdbglw is offline Member
    Join Date
    Jun 2009
    Posts
    44

    Default

    I would also like to know how to do this.

    Currently: After a successful login, user is redirected to default.aspx.

    What we need: After a successful login, user is redirected to mypage.aspx.

  5. #5
    virtualtap is offline Senior Member
    Join Date
    May 2007
    Posts
    171

    Default

    Change your login link to this <a href="/signin.aspx?returnurl=/mypage.aspx">
    MSX

  6. #6
    dvdbglw is offline Member
    Join Date
    Jun 2009
    Posts
    44

    Default

    that worked. thanks virtualtap.

  7. #7
    Amazing is offline Senior Member
    Join Date
    Nov 2008
    Posts
    103

    Default

    Would be nice to do this on a per user basis.. i.e. direct users based on a propery in their customer account (i.e. a new field like InitialPage). This way each customer could have their own initial page if necessary.

  8. #8
    Richnyc30 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    340

    Default (!signinout_link!)

    How do I set the content of this token: (!SIGNINOUT_LINK!) It's not in topics, Strings, or Appconfigs.
    I suppose I could create a String Resource to have the name of any page I want.
    I am curious as to where the Skin tokens are kept.

  9. #9
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    You should be see the definition under the Parser class. If you have the source, you should be able to see it under the AspDotNetStorefrontCore (8011 and above)/ AspDotNetStorefrontCommon (8000 and below)

  10. #10
    Richnyc30 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    340

    Default SSL sign in

    Is there a method to the madness of calling the sign-in page in https? Can I just substitute the fully qualified URL in https or http togo back and forth?
    i.e.
    <a href="https://xxx.com/.../signin.aspx?returnurl=http://xxx.com/.../mypage.aspx">

  11. #11
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Well, you could use this:
    Code:
    HttpContext.Current.Response.Redirect(AppLogic.GetStoreHTTPLocation
    this would actually try to throw you to a secured URL

  12. #12
    Richnyc30 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    340

    Default SSL sign in file change

    Thanks Jao,
    I looked around my site but the changes you mentioned for HTTPS redirect, are they in the source files?
    Could I get an explanation of: HttpContext.Current.Response.Redirect(AppLogic.Get StoreHTTPLocation.... - in regards to what data is referenceable here, how to assign, and how it calls a page

  13. #13
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Well, the HttpContext.Current.Response.Redirect is already standard and it basically redirects the browser to whatever content is assigned to its parameter. AppLogic.GetStoreHTTPLocation is what I need to explain, it simply checks the bool parameter and then alter the kind of line the URL will use. If the value is false, the URL will simply use the HTTP (non-secure), otherwise, it will be changed to HTTPS (secure). That's the function of the AppLogic.GetStoreHTTPLocation and it's available and ready for usage...