1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to login in to wordpress admin from AsP.net website?

Discussion in 'C#' started by diyaots, Sep 20, 2012.

  1. #1
    Hi Friends

    My problem is that I am developing an ASP.net web application and a blog using wordpress. I want once the admin user has logged into the ASP.net website, he should be able to access wordpress admin area with logging in to the WP admin and vise-versa.

    Thanks
    Diya
     
    diyaots, Sep 20, 2012 IP
  2. alamlinks

    alamlinks Well-Known Member

    Messages:
    992
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    140
    #2
    WordPress log in will be configured when you are installing word-press.
     
    alamlinks, Sep 20, 2012 IP
  3. Kousha

    Kousha Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #3
    You should change Wordpress codes, i think you can't do this easily. PHP coding is required.
    1. Set a cross cookie in ASP.net (.domain.com)
    2. Change wordpress athentication for using this cookie
     
    Kousha, Sep 21, 2012 IP
  4. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #4
    Have you considered using XML-RPC? That's what the official wordpress app on android uses. It might be something to look into, though you'll need to enable it from your wordpress blog too in order for it to work
     
    Grit., Apr 8, 2015 IP
  5. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #5
    I would extend the WebClient class from MS and stuff the intelligence to hold CookieContainer inside it so you can manage the session after doing a post with your credentials.
     
    ccoonen, Feb 13, 2018 IP