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 8652751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:22:51+00:00 2026-06-12T14:22:51+00:00

What I am doing is I set both alfresco and share to session time

  • 0

What I am doing is I set both alfresco and share to session time out time 60 minutes in their web.xml file.

My scenario is

  1. When I want to start a workflow in Start Workflow page, I fill all
    necessary data but do not click “Start Workflow” button.
  2. After session time out, I click this “Start Workflow” button.
  3. At the first time, authentication box opens and request for username
    and password.
  4. I filled user name and password of another user.
  5. It starts a workflow with the authenticated another user.
  6. Other times for session timeout, it does not request authentication
    box, but acts for previously requested authenticated user.

So I think Why does it happen??? Is it because of cookie??

Currently there are four cookies used, namely alfLogin, alfUsername2, JSSESSIONID, _alfTest. Only when user is logged out, alfUsername2 cookie is deleted and others are remained.alfLogin and alfUsername2 cookies’ expire time is 7 days and other cookie are depends on session.

Can alfresco web script still be used after session timeout? If so, how can I avoid this condition?

  • 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-06-12T14:22:52+00:00Added an answer on June 12, 2026 at 2:22 pm

    Although I have to answer my own question, I just want to share my result. I have to trace much. But answer is so simple.

    Firstly, it is not because of cookie.

    This answer is not only just for clicking “Start Workflow” button but also calling alfresco webscript after session time out in share.

    All calling to alfresco webscript is done by EndPointProxyController specifically org.springframework.extensions.webscripts.servlet.mvc.EndPointProxyController in spring-webscripts-1.0.0-sources.jar.

    In handleRequestInternal method if there is no session and basicHttpAuthChallenge is true, basic authentication box is shown as below.

                else if (this.basicHttpAuthChallenge || descriptor.getBasicAuth())
                {
                    // check for HTTP authorisation request (i.e. RSS feeds, direct links etc.)
                    String authorization = req.getHeader("Authorization");
                    if (authorization == null || authorization.length() == 0)
                    {
                        res.setStatus(HttpServletResponse.SC_UNAUTHORIZED,
                                "No USER_ID found in session and requested endpoint requires authentication.");
                        res.setHeader("WWW-Authenticate", "Basic realm=\"Alfresco\"");
    
                        // no further processing as authentication is required but not provided
                        // the browser will now prompt the user for appropriate credentials
                        return null;
                    }
                    else
                    {
    // other coding
                    }   
    

    We can avoid this condition as

    in endpointController of slingshot-application-context.xml, change
    basicHttpAuthChallenge to false.

    Like

       <!-- Override EndPointProxyController to enable Basic HTTP auth challenge on 401 response -->
       <bean id="endpointController" class="org.springframework.extensions.webscripts.servlet.mvc.EndPointProxyController">
          <property name="cacheSeconds" value="-1" />
          <property name="useExpiresHeader"><value>true</value></property>
          <property name="useCacheControlHeader"><value>true</value></property>
          <property name="configService" ref="web.config" />
          <property name="connectorService" ref="connector.service" />
          <property name="supportedMethods"><null/></property>
          <property name="basicHttpAuthChallenge"><value>false</value></property>
       </bean>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing file transfer via XMPP on both Android and iOS to a Spark
I am doing some manipulation on servlet and set the same in session and
Using Sinatra in Ruby you can set the server's settings by doing: set :myvariable,
After doing a set , when i try to get a object from memcached,
This is what i am doing update t1 set x=a,y=b where a and b
I'm doing a query on a set of users that returns the users within
I'm doing a sorting of a set of users, I have 4 groupings like
Doing some jquery animation. I have certain divs set up with an attribute of
I am doing a transformation from a customoized set cover problem to a sat,
I need to set a cookie with javascript which I'm doing this with the

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.