Skip to content

MVC Core controller State Managment #6

Open
@mandloikunal

Description

@mandloikunal

I am working on Webhooks Concept. Since Webhooks act like an trigger. It will be firing an event like Update or Insert takes place. Its a MVC application and I have two Controller Home and Webhook Controller. I am passing argument through Query String on Home controller. I have tried Session,TempData, Cookies for passing variable from home to Webhooks HttpContext.Session.SetString("UserName", Request.Query["UserName"].ToString());

and getting session value on webhook controller

HttpContext.Session.GetString("UserName");

Also tried the same for TempData

Issue is On webbooks Controller its coming null.

I need to store parameter (User Name ,password) and reused the same for database related operation

Kindly guide

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions