Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6156941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:42:00+00:00 2026-05-23T20:42:00+00:00

What is equivalent for below code in VB.NET new FormsAuthentication().SetAuthCookie(user.UserId, true, ticketData); Ref :

  • 0

What is equivalent for below code in VB.NET

new FormsAuthentication().SetAuthCookie(user.UserId, true, ticketData);

Ref : http://blog.tatham.oddie.com.au/2011/04/04/released-formsauthenticationextensions

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:42:00+00:00Added an answer on May 23, 2026 at 8:42 pm

    If it were legal, the equivalent code in VB.NET would be the following (note the Call in the beginning — that’s the magical part that makes this work):

    Call (New FormsAuthentication()).SetAuthCookie(user.UserId, true, ticketData)
    

    Another option would be useWith:

    With New FormsAuthentication()
        .SetAuthCookie(user.UserId, true, ticketData)
    End With
    

    But as Darin has said, SetAuthCookie() is a static method and should be called as such.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are the two code samples below equivalent? Poco::ProcessHandle::PID ProcessRunner::processId() const { Poco::ProcessHandle::PID pid =
I am looking for PHP equivalent of the below code even if it is
How can I implement the below code (ActionScript) in Python? var bytes:ByteArray = new
help to make an equivalent Javascript code for the Jquery code below <script> var
What is the equivalent of following C# code to VB.net code. public void RaiseTotalTimeEvent(TotalTimeEventArgs
I'm struggeling to understand how the below code works. It's from http://docs.python.org/library/itertools.html#itertools.izip_longest , and
What is the postgres equivalent of the below mysql code CREATE TABLE t1 (
Is there an immediate equivalent in javascript for the below jquery code? $('.checkbox').each(function() {
I've been thinking/searching for an equivalent of the problem that I am having below,
Is there a C# equivalent for the VB.NET FormatNumber function? I.e.: JSArrayString += ^

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.